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 2011-11-07 12:06:00

chels75
Member
Registered: 2011-10-17
Posts: 6

Problème notifications - balise FOREACHfollowups

Bonjour à tous,

Je viens de mettre a jour GLPI en v 0.80.5.
Tout est OK, a part pour mes notifications de création de ticket, voici la partie du code qui ne fonctionne pas:

##FOREACHfollowup##
##IFfollowup.isprivate=No##
<tr class="tab_bg_3">
   <td colspan="4" align="center"><strong>[##followup.date##]</strong></td>
</tr>
 
<tr class="tab_bg_1">
   <td>##lang.followup.author##&#160;:</td>
   <td colspan="3">##followup.author##</td>
</tr>

<tr class="tab_bg_1">
   <td>##lang.followup.description##&#160;:</td>
   <td colspan="3">##followup.description##</td>
</tr>

<tr class="tab_bg_1">
   <td>##lang.followup.date##&#160;:</td>
   <td colspan="3">##followup.date##</td>
</tr>

<tr class="tab_bg_1">
   <td>##lang.followup.requesttype##&#160;:</td>
   <td colspan="3">##followup.requesttype##</td>
</tr>
##ENDIFfollowup.isprivate##
##ENDFOREACHfollowup##

Les balises ##lang.followup.xxx## renvoient bien la désignation en français, par contre les balises ##followup.xx## apparaissent telles quelles dans le mail

J'ai essayé avec

##FOREACHfollowup##

et

##FOREACHfollowups##

sans succès.
Avec ou sans la condition

##IFfollowup.isprivate=No##

même problème.

Merci d'avance pour votre aide!


GLPI 0.80.7
XAMPP Sur W2K3

Offline

#2 2011-11-07 14:22:37

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Problème notifications - balise FOREACHfollowups

syntaxe correcte : ##FOREACHfollowups##

De plus il faut faire le contrôle sur la valeur dans la base de données : ##IFfollowup.isprivate=0##


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2011-11-07 15:01:13

chels75
Member
Registered: 2011-10-17
Posts: 6

Re: Problème notifications - balise FOREACHfollowups

j'ai modifié le code sur tes conseils, par contre j'ai toujours ceci dans le mail généré:

[##followup.date##]
Rédacteur : ##followup.author##
Description : ##followup.description##
Date d'ouverture : ##followup.date##
Source de la demande : ##followup.requesttype##


GLPI 0.80.7
XAMPP Sur W2K3

Offline

#4 2011-11-07 15:22:28

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Problème notifications - balise FOREACHfollowups

Et ces champs sont bien remplis dans ton ticket ?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2011-11-07 15:28:35

chels75
Member
Registered: 2011-10-17
Posts: 6

Re: Problème notifications - balise FOREACHfollowups

Oui, d'ailleurs

##lang.ticket.numberoffollowups## :  ##ticket.numberoffollowups##

me renvoie, par exemple:

Suivi(s) déjà effectué(s) : 2


GLPI 0.80.7
XAMPP Sur W2K3

Offline

#6 2020-01-21 13:47:56

rnath34
Member
Registered: 2019-06-05
Posts: 2

Re: Problème notifications - balise FOREACHfollowups

Bonjour,

J ai le même probleme.
Avez vous une solution ?

Offline

#7 2020-01-22 11:53:37

rnath34
Member
Registered: 2019-06-05
Posts: 2

Re: Problème notifications - balise FOREACHfollowups

Bonjour,

Dans les modèles de notifications via l'IHM les balises
##followup.date## - ##followup.author##
##followup.description##
Ne sont pas prise en compte dans le mail mais affichées.

J ai encadrer ces balises par les balises ##FOREACH LAST followups## et ##ENDFOREACHfollowups##

et là c'est bien prise en compte.
Exemple :

Bonjour,

Le ticket ##ticket.id## a été mis à jour.

##FOREACH LAST followups##
##followup.date## - ##followup.author##

##followup.description##

##ENDFOREACHfollowups##

Merci de la prendre en compte.

Le ticket est consultable via le lien :##ticket.id##

Cordialement,

Offline

Board footer

Powered by FluxBB