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

fago’s picture

Component: Rules Core » Rules Engine
Status: Active » Fixed

>"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.

romantaran’s picture

Thank you! The notice is disappeared.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.