In the state editing form, additional submit handlers (the ones I add using hook_form_alter) cannot determine the $sid of the state if the form is used to add a new state.

Attached patch makes the $sid available to additional submit handlers via the $form_state variable.

Comments

traxer’s picture

StatusFileSize
new1.03 KB

Although the $wid of new workflows can be parsed from $form_state['redirect'] (in the form for adding workflows), it might be cleaner to record the $wid explicitly as well.

jvandyk’s picture

Status: Needs review » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

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