If I'm not mistaken, the attached patch fixes a problem where you derived a variable name for finding an action's parameter in the state but then used the name of the parameter instead of the variable. I found this issue when creating a user account, fiddling with it, and saving it. Because I changed the name of the provided variable from entity_created to account_created, it wasn't finding it in subsequent actions.

CommentFileSizeAuthor
state_var_name.patch1.19 KBrszrama

Comments

rszrama’s picture

Component: Rules Core » Rules Engine
Status: Active » Needs review

Go, go, gadget test bot!

fago’s picture

Priority: Normal » Major
Status: Needs review » Fixed

Oh, that's odd. We really need test-coverage so we can ensure that cannot happen again.

I've added a test-case for that + committed it. Thanks!

Status: Fixed » Closed (fixed)

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