Bug #23613 Bug Fixed

Fix for fluid {content}{/content} bug seems to break some conditionals

Version: 4.2.1 Reporter: Rick Lecoat

The patch for bug 23606 does fix the issue it was intended for, but also seems to created a new one, namely: conditionals that check for populated content inside of a {content} tag pair (eg. content inside a particular column of a grid field inside a fluid field) seem to fail. Example: in the following, my_grid is a grid with three columns, one of which is named ‘caption’.

{my_fluid_field}
 {my_fluid_field:my_grid}
  {content}
   {if content:caption}<span>{content:caption}</span>{/if}
  {/content}
 {/my_fluid_field:my_grid}
{/my_fluid_field}

The above should output the caption (if it is present in the grid column for that row), but in fact it does not; the entire conditional seems to return false, regardless of whether the expected content is there or not. I’ve run some tests, alternately applying and removing the fix from bug 23606; each time the caption appears in my markup when using the ‘unfixed’ file, but does not when using the ‘patched’ file.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases