Not sure why this condition is ALWAYS evaluating to true. Trying to check to see if the value in a long text field has been changed.
The first field in the condition node-unchanged:field-security-audit (field type is Long Text) is always evaluating as true. The second field node-unchanged:field-security-audit-status-pubf (field type is term reference)is evaluating properly.
Any help would be greatly appreciated.
Here is the rule export:
{ "rules_security_audit_status_updated" : {
"LABEL" : "Security Audit Status Updated",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"TAGS" : [ "security" ],
"REQUIRES" : [ "rules" ],
"ON" : { "node_update--api_publishing_form" : { "bundle" : "api_publishing_form" } },
"IF" : [
{ "OR" : [
{ "NOT data_is" : {
"data" : [ "node-unchanged:field-security-audit" ],
"value" : "node:field-sucurity-audit"
}
},
{ "NOT data_is" : {
"data" : [ "node-unchanged:field-security-audit-status-pubf" ],
"value" : [ "node:field-security-audit-status-pubf" ]
}
}
]
}
],
"DO" : [
{ "data_set" : {
"data" : [ "node:field-security-audit-timestamp" ],
"value" : [ "site:current-date" ]
}
},
{ "mail" : { //send mail
}
}
]
}
}