Skip Navigation

Conditionals including special characters might fail

Won't fix

Reported for: Toolset Views 2.5.1

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

There is no workaround for this issue. In one of the future releases, we will add validation that recognizes the breaking characters when you’re creating the conditional using the user interface. Validation will help you prevent usage of special characters in the conditional evaluation.

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.

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>