Watch Module must be turned on.
Category module must be tuned on.
Article Module must be turned on.
If I create a new Article and assign it to a category that is watched by me, I should get a notifcation that a new object has entered the category. By I don´t get a notification.
I encountered this problem while I was working on the new report feature because I didn´t get an entry in the report too.
The possible Bug is located at the update_object_categories function in categlib.php (Line 1491) in the $categories variable.
$categories contains all new Categorie-ID´s of an object. So if I assign an article to a category, $categories should contain the ID of the category. No problem so far. The problem is, that each ID has a slash behind the last digit.
print_r($categories); die();
at the third line of the function gives
Array ( [0] => 2/ )
I think the slash is wrong.
Debug it backwards and look for the place where the slash comes from.
Then remove the slash.
I debuged it back somewhere to the tree-generator but I didn´t unterstand the code. Sry.
A hack to solve the problem temporary is, to remove the slash from the ID in the update_object_categories function itself.
//Dirty hack to remove the Slash at the end of the ID (Why is there a slash?!) foreach($categories as $key=>$category) { if($category{strlen($category)-1}=="/") $categories[$key]=substr($category, 0, -1); }
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |