I have a few Mail Templates that have conditional smarty codes like:
{capture assign=pp_scan}{contact.custom_74}{/capture}{if $pp_scan}You have already provided{else}You have not yet provided{/if} a scan of your passport.
This code ran just fine until I upgraded to 4.7.27 (from 4.7.21). Don't know if it is related to the upgrade or just a coincidence. Now, this code resolves to
{capture assign=pp_scan}{/capture}{if $pp_scan}You have already provided{else}You have not yet provided{/if} a scan of your passport.
in the text of the email.
How do I debug the smarty code in mail templates? I tried adding {debug} to the mail template, but that didn't help.