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