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.
| Comment | File | Size | Author |
|---|---|---|---|
| content.rules_.inc_.diff | 837 bytes | arojoal |
Comments
Comment #1
fagoIf 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.
Comment #2
arojoal commentedIn that case I think that the name of the condition can generate some missunderstanding as it has happened in my case.
Comment #3
tekken commentedUnfortunately the limitation to an exact match still exists. Here's a workaround.