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 2023-10-24 11:26:12

MasinAD
Member
Registered: 2023-10-24
Posts: 13

Multiple identical IFconditions in notification templates

Hi,

in front/notificationtemplatetranslation.form.php?id=4&notificationtemplates_id=4, the default translation of the default ticket notification template, I try this code:

##IFticket.storestatus=5##
<p><strong>##lang.ticket.autoclosewarning##</strong></p>
##ENDIFticket.storestatus##
<dl>
<dt>##lang.ticket.url##</dt>
	<dd><a href="##ticket.urlapprove##">##ticket.title##</a></dd>
##IFticket.storestatus=5## <!-- solved -->
<dt>##lang.ticket.solvedate##</dt>
	<dd>##ticket.solvedate##</dd>
<dt>##lang.ticket.solution.type##</dt>
	<dd>##ticket.solution.type##</dd>
<dt>##lang.ticket.solution.author##</dt>
	<dd>##ticket.solution.author##</dd>
<dt>##lang.ticket.solution.description##</dt>
	<dd>##ticket.solution.description##</dd>
##ENDIFticket.storestatus##
</dl>

But on saving it the second IFticket.storestatus=5 and ENDIFticket.storestatus gets removed. I'm not even sure if these are some kind of language elements or just static keywords :-). Anyway, I couldn't find any documentation if I can query the same condition more than once.

Bests,
Masin

Offline

Board footer

Powered by FluxBB