2011/2/11 Nicolas Michaux <nicolas-glpi-...@michaux.homelinux.org>

> On Friday 11 February 2011 13:37:35 Denis Linvinus wrote:
> > I found little bug,
> Hi Denis,
>
> > imposible to use '0' as condition parameter
> It seems you are doing same template as mine :-)
>
> > following template don't work
> >
> > ##IFticket.numberoftasks=0## --- ##ENDIFticket.numberoftasks##
> > ##ELSEticket.numberoftasks## ##lang.ticket.numberoftasks## :
> >  ##ticket.numberoftasks## ##ENDELSEticket.numberoftasks##
> If found a workaround by using this template :
>

better if template will support both styles



>
> ##IFticket.numberoftasks= 0##
> ##ENDIFticket.numberoftasks##
> ##ELSEticket.numberoftasks##
> ##FOREACHtasks##
> Le ##task.date##, ##task.author## a écrit:
> ##task.description####lang.task.time## : ##task.time##
> ##ENDFOREACHtasks##
> ##ENDELSEticket.numberoftasks##
>
> > problem with
> >
> > if (empty($out[2][$key]) ){ // No = : check if ot empty or not null
> >
> > zero also interpretete as empty, so we need to check length too, or
> > something similar
>  Add a space before 0 and it should work...
>



I think GLPI should contain two preconfigured template schemes, compact and
full

I and my users don't want to see all properties of ticket until it close

Also little misunderstanding, add task after several followups :), users
don't want to scroll down to see what's new with ticket

but for that i use different templates with different order followups and
tasks in body




>
> Nicolas
>
> _______________________________________________
> 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

Reply via email to