Condition is silently ignored if contentcheck is specified

Kirby

Well-known member
Affected version
2.2.12
Reproduction Code
HTML:
<xf:set var="$value" value="{{ 0 }}" />
<xf:if is="$value > 0" contentcheck="true">
    Value is {$value}<br />
    <xf:contentcheck>
        This should not be shown!
    </xf:contentcheck>
</xf:if>

Expected Result
1) No output is generated from this template code (Preferred)
or
2) An error is being shown that is cannot be used together with contentcheck

Actual Result
No error is being shown when seving the template code but the output is
Code:
Value is 0
This should not be shown!

While it is easy to work around this issue it would be nice if this could be fixed.
 
Back
Top Bottom