N°2875 - Mentions: Continue work on implementation

- Add context attribute to details zlist
- Update french dictionary
This commit is contained in:
Molkobain
2021-04-06 21:38:02 +02:00
parent 057bb1a296
commit b19f9d4875
2 changed files with 3 additions and 29 deletions

View File

@@ -558,7 +558,7 @@ class TriggerOnObjectUpdate extends TriggerOnObject
* Class TriggerOnObjectMention
*
* @author Guillaume Lajarige <guillaume.lajarige@combodo.com>
* @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;
// }
}
/**