mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Notification were not working well with class hierarchy (not in Trac at that time)
SVN:trunk[734]
This commit is contained in:
@@ -255,7 +255,8 @@ function DisplayLifecycle($oPage, $sClass)
|
||||
*/
|
||||
function DisplayTriggers($oPage, $sClass)
|
||||
{
|
||||
$oSet = new CMDBObjectSet(DBObjectSearch::FromOQL("SELECT TriggerOnStateChange WHERE target_class = '$sClass'"));
|
||||
$sClassList = implode("', '", MetaModel::EnumParentClasses($sClass, ENUM_PARENT_CLASSES_ALL));
|
||||
$oSet = new CMDBObjectSet(DBObjectSearch::FromOQL("SELECT TriggerOnObject WHERE target_class IN ('$sClassList')"));
|
||||
cmdbAbstractObject::DisplaySet($oPage, $oSet);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user