When defining and invoking a Rules component from code, non-parameter variables must be appended to the end of the $variables array, otherwise the order of passed arguments on execution will not match. This patch adds an offset counter for non-parameter variables to track them. Now non-parameter variables can live at any position in $variables.

CommentFileSizeAuthor
rules-non-parameter-offset.patch1.46 KBklausi

Comments

fago’s picture

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

thanks, committed.

Status: Fixed » Closed (fixed)

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