Skip Navigation

Conditionals including special characters might fail

Resolved

Reported for: Toolset Views 2.5.1

Resolved in: Views 3.3 (Blocks 1.3)

Symptoms

Views conditionals, as well as CRED conditional groups, might fail to evaluate the condition when it contains special characters like single or double quotes, or dollar signs.

For example, the following comparisons will fail to resolve properly:
if="($(single-line) eq 'string$' )"

This is because one of the comparison strings contains a dollar sign.

This problem also affects those comparisons that check the value provided by a shortcode or a custom function. That means that comparisons checked against the value of a custom field might fail if this field value contains one of those special characters.

Workaround

This issue has been resolved with the latest release of Views (3.3)

2 thought on Conditionals including special characters might fail

  • Hi there

    Yes, sure. Just subscribe to the comments of this errata, and we will update it when we find a solution by including a patch against the current stable version.

Comments are closed