Email notification (object entered/left category) is not working when i use the transition with the transition module
- Status
- Closed
- Subject
- Email notification (object entered/left category) is not working when i use the transition with the transition module
- Version
- 15.x
6.x - Category
- Consistency
- Feature request
- Feature
- Modules
Staging and Approval
Transition (of Groups or Categories)
Watch (email notifications of changes)
Wiki (page view, edit, history, rename, etc) - Resolution status
- Fixed or Solved
- Submitted by
- gcosilveira
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
When I evaluated the software for my project, I was very happy when the documentation said that it was possible to create a workflow with categories, transitions and watches. But I realized that watching a category only triggered a mail notification when the transition was made in the tiki-admin_categories.php page. It was useless for me!! 😑(
- Files
- Solution
I studied the code and I discovered a way to put notification when a transition is made with the transition module (only for wiki pages).
I inserted this code in 184 line:
if ($type "wiki page" or $type "wikipage" or $type == "wiki_page") {
$category = $categlib->get_category($state);
$categorizedObject = $categlib->get_categorized_object('wiki page', $object);
$values = array(
"categoryId" => $state,
"categoryName" => $category'name',
"categoryPath" => $categlib->get_category_path_string_with_root($state) ,
"description" => $category'description',
"parentId" => $category'parentId',
"parentName" => $categlib->get_category_name($category'parentId') ,
"action" => "object entered category",
"objectName" => $categorizedObject'name',
"objectType" => $categorizedObject'type',
"objectUrl" => $categorizedObject'href'
);
$categlib->notify($values);
}- Workaround
- Importance
- 7
- Priority
- 35
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3868
- Created
- Wednesday 04 May, 2011 19:40:26 UTC
by gcosilveira - LastModif
- Tuesday 30 June, 2026 16:54:18 UTC