Loading...
 
Skip to main content

Mail notification not showing wiki page name and url

Status
Open
Subject
Mail notification not showing wiki page name and url
Version
6.x
Category
  • Error
Feature
Wiki (page view, edit, history, rename, etc)
Watch (email notifications of changes)
Resolution status
New
Submitted by
gcosilveira
Lastmod by
gcosilveira
Rating
(0)
Description
Mail notification not showing wiki page name and url.Problem in objectlib.php.
Solution

Objectlib.php force itemId from select in tiki_objects table to be "INT" but this is not true for wiki pages (in this case, itemId is the name from the page).
It worked when function get_object was changed to:

function get_object($type, $itemId) {
$query = 'select * from `tiki_objects` where `itemId`=? and `type`=?';
if ($type "wiki page" or $type "wikipage" or $type == "wiki_page") {
$result = $this->query($query,array($itemId, $type));
} else {
$result = $this->query($query,arrayint) $itemId, $type;
}
return $result->fetchRow();
}

Importance
6
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3869
Created
Wednesday 04 May, 2011 19:49:05 UTC
by gcosilveira
LastModif
Wednesday 04 May, 2011 19:49:05 UTC


Show PHP error messages