function getSubjectPrefix($event = '') { $perso_tag = trim(Entity::getUsedConfig('notification_subject_tag', $this->getEntity(), '', '')); if (empty($perso_tag)) { $perso_tag = "GLPI"; } return "[{$perso_tag}] "; }
function getSubjectPrefix($event = '') { if ($event != 'alertnotclosed') { return sprintf("[GLPI #%07d] ", $this->obj->getField('id')); } return parent::getSubjectPrefix(); }