View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000404 | WackoWiki | handler | public | 2011-12-06 14:49 | 2011-12-26 07:49 |
Reporter | taskoma | Assigned To | administrator | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.0.rc | ||||
Target Version | 5.0.0 | Fixed in Version | 5.0.0 | ||
Summary | 0000404: not recognized inner referrers | ||||
Description | In referres not recognized links like ((/Page2 Page2)) | ||||
Steps To Reproduce | step 1 create page with link like ((/Page2 Page2)) step 2 go to page2 and look page2/referrers "to page" category is empty but if we create link like ((/Page2)) all is ok | ||||
Tags | No tags attached. | ||||
|
Addition: problem in new page Reproduce: create new page1 and create link in it to page2 after that do select * from ww5_link; and see that 'from_page_id' equal 0, so this referrer ingnored. But after edit/save page1 'from_page_id' changed to page_id |
|
Solution: handlers/page/edit.php : 175 instead $this->write_link_table($this->page['page_id']); need use $this->write_link_table($this->get_page_id($this->tag)); |
|
Gotcha, if we edit a new page the $this->page['page_id'] is not yet available. I'll add it better to the write_link_table function // this is a new page, try to get page_id via tag if (empty($from_page_id)) { $from_page_id = $this->get_page_id($this->tag); } |
|
I've chosen the following fix for the issue: handlers/page/edit.php : 170 // this is a new page, get page_id via tag for the new created page if (!$this->page) { $this->page['page_id'] = $this->get_page_id($this->tag); } There are other possible ways to address this, here we just look up for the page_id if we have a new created page. |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-12-06 14:49 | taskoma | New Issue | |
2011-12-06 15:07 | taskoma | Note Added: 0000826 | |
2011-12-06 15:40 | taskoma | Note Added: 0000827 | |
2011-12-07 17:21 | administrator | Note Added: 0000828 | |
2011-12-07 17:21 | administrator | Assigned To | => administrator |
2011-12-07 17:21 | administrator | Severity | major => minor |
2011-12-07 17:21 | administrator | Status | new => assigned |
2011-12-07 17:21 | administrator | Target Version | => 5.0.0 |
2011-12-07 17:21 | administrator | Steps to Reproduce Updated | |
2011-12-07 17:28 | administrator | Note Edited: 0000828 | |
2011-12-26 07:49 | administrator | Note Added: 0000831 | |
2011-12-26 07:49 | administrator | Status | assigned => resolved |
2011-12-26 07:49 | administrator | Resolution | open => fixed |
2011-12-26 07:49 | administrator | Fixed in Version | => 5.0.0 |