I have defined a rule condition that checks if a field defined as a "multiple value text" contents one of the allowed values. If the new node has only the value checked, the rule works fine. The problem appears when the new node has more than one value, including the wanted one. In that case, the rule doesn't find the wanted value and returns FALSE.

I have written a modification to the file (content.rules.inc) in order to solve it. I may have some trouble if the rule condition looks for more than one value, but it works fine for only one value.

I attache the diff with my modifications.

CommentFileSizeAuthor
content.rules_.inc_.diff837 bytesarojoal

Comments

fago’s picture

Status: Active » Closed (works as designed)

If you have a multiple value field, all values have to match. As of now, there is no support for checking if the value X is contained in the multiple values.

arojoal’s picture

In that case I think that the name of the condition can generate some missunderstanding as it has happened in my case.

tekken’s picture

Unfortunately the limitation to an exact match still exists. Here's a workaround.