Closed (fixed)
Project:
Rules
Version:
7.x-2.0-beta1
Component:
Rules Engine
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2011 at 04:08 UTC
Updated:
23 May 2011 at 15:51 UTC
In my rule with event "After saving a new comment" I have condition "Data value is empty" with Parameter: Data to check: [comment:parent]
When comment has parent, rule works with no problems. But when there is no parent, I got an error
"Notice: Undefined index: format in comment_submit() (line 2183 of /home/.../www/.../modules/comment/comment.module)."
and "Unable to execute condition data_is_empty." in Rules log.
Comments
Comment #1
fago>"Unable to execute condition data_is_empty."
Indeed, the comment parent proprety did not properly return NULL in case it is empty. I fixed that in the entity API. Test the next dev snapshot of it. This doesn't sound like being related to the notice, thus if the notice stays please re-open the issue and provide more information about the rule causing the notice.
Comment #2
romantaran commentedThank you! The notice is disappeared.