Bug #23229 Accepted

Grid field next_row variable pair conditional parsing issue

Version: 3.5.11 Reporter: Robin Sowell

If I create a text field called ‘test’ and I just put either an a or nothing in it, and then I test whether the next row’s value exists, I’m not getting the expected results.

Here’s what the template looks like:

{exp:channel:entries channel="class_schedual" status="not closed"}


                    This row is #{classes_grid:row_id}. Is the toggle true? value: {classes_grid:test}
                    {if classes_grid:test}
                        The next row is #{classes_grid:row_id}. Is that toggle true? value: {classes_grid:test}. conditional: 
                        {if classes_grid:test}


It shows the correct value for the next row, but the conditional only works if braced a la:

{if '{classes_grid:test}' != ''}
  • Nobody has said anything yet.

You must be signed in to comment on a bug report.

ExpressionEngine News

#eecms, #events, #releases