Hello You can already do this with the foreach tag :
##FOREACH LAST Xfollowups## ##FOREACH LAST Xtasks## Where X is the number of the last items you want. Example : ##FOREACH LAST 1followups## ##followup.author## ##followup.date## ##followup.description## ##followup.isprivate## ##followup.requesttype## ##ENDFOREACHfollowups## and ##FOREACH LAST 1tasks## ##task.author## ##task.begin## ##task.category## ##task.date## ##task.description## ##task.end## ##task.isprivate## ##task.status## ##task.time## ##task.user## ##ENDFOREACHtasks## Regards ----- Mail original ----- > Dear all, > > I propose to add a set of TAGs for the notification templates, the purpose of > these will be to have the possibility to get the latest added or modified > 'Follow-up' or the latest added or modified 'Task'. > > ##followup.latest.author## > ##followup.latest.date## > ##followup.latest.description## > ##followup.latest.isprivate## > ##followup.latest.requesttype## > > ##task.latest.author## > ##task.latest.begin## > ##task.latest.category## > ##task.latest.date## > ##task.latest.description## > ##task.latest.end## > ##task.latest.isprivate## > ##task.latest.status## > ##task.latest.time## > ##task.latest.user## > > This will give the possibility to send notifications which will contain only > the concerned follow-up or task to receivers. > > Thank you, > Regards, > > Olivier MORON > Miscellaneous Program Member > > RAYNET SNC > Tel : +33 4 76 33 49 52 > Fax: +33 4 76 70 56 63 > > > > -----Original Message----- > From: glpi-dev-boun...@gna.org [mailto:glpi-dev-boun...@gna.org] On Behalf Of > David DURIEUX > Sent: Wednesday, March 20, 2013 4:44 PM > To: glpi-dev@gna.org > Subject: Re: [Glpi-dev] 0.84- patch qui remplace is_array qui est un peu lent > > Faudrait faire pareil dans la même classe pour > clean_cross_side_scripting_deep > > J'avais zappé dans le patch > > David > > > Le Wed, 20 Mar 2013 16:41:14 +0100 > David DURIEUX <d.duri...@siprossii.com> a écrit: > > >Bonjour, > > > >is_array est un peu lent, voici un patch qui empeche son utilisation. > > > >is_array : > >24924 call de la fonction addslashes_deep (dans un inventaire fusion) > >1067086 ms d'execution > >1088283 cpu ticks > >2678352 mémoire > > > >sans is_array : > >24924 call de la fonction addslashes_deep (dans un inventaire fusion) > >940770 ms d'execution (88%) > >948907 cpu ticks (97%) > >2674864 mémoire > > > > > > > >Cordialement, > >-- > >David DURIEUX > >Tel : +33 (0)4.82.53.30.53 > >Mail : d.duri...@siprossii.com > >Site Web : http://www.siprossii.com/ > > > >SIPROSSII > >Les Lafôrets > >69430 Beaujeu > >FRANCE > > _______________________________________________ > Glpi-dev mailing list > Glpi-dev@gna.org > https://mail.gna.org/listinfo/glpi-dev > _______________________________________________ > Glpi-dev mailing list > Glpi-dev@gna.org > https://mail.gna.org/listinfo/glpi-dev > _______________________________________________ Glpi-dev mailing list Glpi-dev@gna.org https://mail.gna.org/listinfo/glpi-dev