Loading...
 
Skip to main content

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
(0)
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
  1. Transitionlib
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+
Demonstrate Bug (older Tiki versions)
Ticket ID
3868
Created
Wednesday 04 May, 2011 19:40:26 UTC
by gcosilveira
LastModif
Tuesday 30 June, 2026 16:54:18 UTC


Show PHP error messages