Developer forum

Forum » Templates » After updating to 8.3.1.1 the logic for "If Not LoopDefined" stopped working

After updating to 8.3.1.1 the logic for "If Not LoopDefined" stopped working

Martin Nielsen
Reply

Hi DW,

 

After update a solution to 8.3.1.1, the tags for testing if a loop is defined, stopped working.

 

I have a template like this:

<!--@If LoopDefined(ProductRelatedGroups)-->  
LOOP IS DEFINED
<!--@EndIf(ProductRelatedGroups)-->

<!--@If Not LoopDefined(ProductRelatedGroups)-->
LOOP IS NOT DEFINED
<!--@EndIf(ProductRelatedGroups)-->

And when i render a product that has related products the text "LOOP IS DEFINED" is shown.

If i visit a product that has no related products, then nothing is rendered. I'd expect to see "LOOP IS NOT DEFINED".

 

Any1 else seeing the same behaviour?

 

// Martin


Replies

 
Mikkel Ricky
Reply

It looks like a bug. We'll investigate and make a fix.

Best regards,
Mikkel

 

  

 
Martin Nielsen
Reply

Great, thx.

 

You must be logged in to post in the forum