diff --git a/core/trigger.class.inc.php b/core/trigger.class.inc.php index a2de78ad6..df8e18fa3 100644 --- a/core/trigger.class.inc.php +++ b/core/trigger.class.inc.php @@ -558,7 +558,7 @@ class TriggerOnObjectUpdate extends TriggerOnObject * Class TriggerOnObjectMention * * @author Guillaume Lajarige - * @since 2.7.0 + * @since 3.0.0 */ class TriggerOnObjectMention extends TriggerOnObject { @@ -584,37 +584,11 @@ class TriggerOnObjectMention extends TriggerOnObject MetaModel::Init_InheritAttributes(); // Display lists - MetaModel::Init_SetZListItems('details', array('description', 'target_class', 'filter', 'action_list')); // Attributes to be displayed for the complete details + MetaModel::Init_SetZListItems('details', array('description', 'context', 'target_class', 'filter', 'action_list')); // Attributes to be displayed for the complete details MetaModel::Init_SetZListItems('list', array('finalclass', 'target_class')); // Attributes to be displayed for a list // Search criteria MetaModel::Init_SetZListItems('standard_search', array('description', 'target_class')); // Criteria of the std search form } - - // TODO 3.0.0: Clean this up. What was the intention? -// public function IsTargetObject($iObjectId, $aChanges = array()) -// { -// if (!parent::IsTargetObject($iObjectId, $aChanges)) -// { -// return false; -// } -// -// // Check the attribute -// $oAttCodeSet = $this->Get('target_attcodes'); -// $aAttCodes = $oAttCodeSet->GetValues(); -// if (empty($aAttCodes)) -// { -// return true; -// } -// -// foreach($aAttCodes as $sAttCode) -// { -// if (array_key_exists($sAttCode, $aChanges)) -// { -// return true; -// } -// } -// return false; -// } } /** diff --git a/dictionaries/fr.dictionary.itop.core.php b/dictionaries/fr.dictionary.itop.core.php index 4246b64bc..902db59d1 100644 --- a/dictionaries/fr.dictionary.itop.core.php +++ b/dictionaries/fr.dictionary.itop.core.php @@ -645,7 +645,7 @@ Dict::Add('FR FR', 'French', 'Français', array( // Dict::Add('FR FR', 'French', 'Français', array( - 'Class:TriggerOnObjectMention' => 'Déclencheur (sur objet mentionné)', + 'Class:TriggerOnObjectMention' => 'Déclencheur sur mention d\'objet', 'Class:TriggerOnObjectMention+' => 'Déclencheur sur un objet mentionné (@xxx) de la classe choisie (ou de ses filles) dans un attribut de type journal', ));