Thomas Eveilleau wrote:
> Hello guys,
> 
> I'm developing my first application in syntax 2 for a customer.
> I started on a 1.8.2 XE and just moved on a 1.8 Snapshot (the latest 
> build - 05/16).
> 
> Here is my problem :
> I have a little #if in a #foreach that works on my 1.8.2 but not on my 
> 1.8 Snapshot and I totally don't know why.
> 
> #set($tradliste = $doc.getObjects("RimayCode.Traduction"))
> #foreach($traduc in $tradliste)
> #if($!traduc.langue == "Francais")
> $!traduc.langue : $!traduc.traduction <br />
> #end
> #end
> 
> On my 1.8.2 the "foreach" returns all the objects with the good values, 
> and the "if" is a filter to display the items with a "Francais" value in 
> the "langue" field.
> On my 1.8 Snapshot the "foreach" returns all the objects with the good 
> values, but the "if" doesn't work : not any result.
> 
> There is probably a pb, something new to do to create a test like this 
> but I can't see what...
> 
> "langue" is a static list with 4 options (1=Francais|2=Tibetain|3=...)
> 
> Any idea ?

What is the value returned by $traduc.langue?

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to