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 2020-06-30 18:12:07

nicninctout
Member
Registered: 2020-06-29
Posts: 9

Use beams in mail subject

Hello,

i would like to display the validation status in the mail subject. I use the standard notification template with:
##ticket.action## ##ticket.title##


Now i would like to change to:
##validation.status## ##ticket.action## ##ticket.title##

the first one works perfectly, the second one, the beams ##validation.status## is not evaluated and the string is directly displayed...

There is a restricted list of beams available for subject ?
Or, do i have to change the PHP code of the config file to obtain such result ? If i change something in this config file, should i wait to face some trouble when i'll upgrade GLPI, or have to rewrite all changes we made previously.

Thx for your help smile

best regards

Offline

#2 2023-04-03 11:43:01

joze.benedicic
Member
Registered: 2021-10-07
Posts: 26

Re: Use beams in mail subject

I was working on the same problem today and found next solution. Instead of just using ##validation.status## you need to use entire script:
##FOREACHvalidations## ##validation.status##: ##ENDFOREACHvalidations##

In this case I got the correct value


GLPI 9.5.6
Additional Fields 1.13.0, Form Creator 2.12.7, More Reporting 1.7.4, yagp 1.4.0, Alerts 1.9.1, metabase 1.2.4
CentOS Linux 7 (Core)

Offline

Board footer

Powered by FluxBB