You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2025-03-19 09:03:35

rt5504
Member
Registered: 2023-12-16
Posts: 37

variable ##ticket.assigntousers##

I’m working with the variable ##ticket.assigntousers##, and I’ve noticed that when a ticket is reassigned to a new technician, both technicians are displayed, separated by a comma.

I’d like to modify this behavior so that if both names are already displayed, I can manually adjust or add the comma if needed.

Where exactly can I find this in the code? In which file is this logic defined?

Thanks in advance for any help!

Offline

#2 2025-03-19 09:06:06

rt5504
Member
Registered: 2023-12-16
Posts: 37

Re: variable ##ticket.assigntousers##

It also deals with notification templates

Offline

#3 2025-03-19 10:23:46

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,235
Website

Re: variable ##ticket.assigntousers##

The comma is hard-coded in the GLPI code in "src/NotificationTargetCommonITILObject.php". Perhaps in the future when the notification template system is changed this could be configurable.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#4 2025-03-20 16:43:33

rt5504
Member
Registered: 2023-12-16
Posts: 37

Re: variable ##ticket.assigntousers##

THX ...

Line 1257: $data["##$objettype.assigntousers##"] = implode(', ', $users); to $data["##$objettype.assigntousers##"] = implode(' an ', $users);

Offline

Board footer

Powered by FluxBB