This is a bug fix and a feature change request rolled into one.

The current workflow_execute_transition() function does not accept a $force parameter although it is used inside the function (and sent by at least workflow_select_given_state_action). Just adding the parameter and defaulting it to NULL does the job.

The feature change request is to allow the workflow to go to the new state even if there is no transition for it, when $force = TRUE. This will allow workflow admins to manually adjust workflows when something goes wrong.

The attached patch accomplishes those two things. Thanks for your consideration.

CommentFileSizeAuthor
kr-force.patch943 bytesinfojunkie

Comments

Balefire’s picture

Subscribe and +1

verikami’s picture

+2 :-)

...I was just looking for this option, trying to change workflow state between two workflow sets

when using views bulk operations I had msg. that the row was processed, but nothing really happens...

now it works :-)))

jvandyk’s picture

Status: Needs review » Fixed

Committed; will appear in the next release after RC4. Thanks!

Status: Fixed » Closed (fixed)

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