Hi, after upgrading to EE 1.6.9 build 20100805 I noticed issue concerning behavior of empty custom fields inside conditionals.
Say, we have custom empty field “analysis_source_title13” which is empty. Then this code will work correctly, i.e. conditional will be evaluated as FALSE and nothing will be outputted:
{exp:weblog:entries weblog="my_blog" category="6" sort="asc" limit="1" dynamic="off"}
{if analysis_source_title13 != ""}
{analysis_source_title13}
{/if}
{/exp:weblog:entries}But in this code for some reason wrongly evaluates as TRUE
{exp:weblog:entries weblog="my_blog" category="6" sort="asc" limit="1" dynamic="off"}
{if analysis_source_title13 != ""}
<tr class="line_off">
<td class="checkboxtd">
<input type="checkbox" />
</td>
<td>
{analysis_source_title13}
</td>
</tr>
{/if}
{/exp:weblog:entries}and outputs
<tr class="line_off">
<td class="checkboxtd">
<input type="checkbox" />
</td>
<td>
</td>
</tr>
The code
{exp:weblog:entries weblog="my_blog" category="6" sort="asc" limit="1" dynamic="off"}
{if "{analysis_source_title13}" != ""}
<tr class="line_off">
<td class="checkboxtd">
<input type="checkbox" />
</td>
<td>
{analysis_source_title13}
</td>
</tr>
{/if}
{/exp:weblog:entries}works correctly.
I consider this issue as a quite serious because many conditionals which earlier worked correctly might now be broken.