Transition pre hook is broken

Created on 12 September 2024, 9 months ago

Problem/Motivation

I have implemented hook_workflow, and use the 'transition pre' operation to validate certain conditions. In some cases my code return false to prevent the transition from working.

After upgrading to 8.x-1.8, I found that upon returning false from my hook, the workflows module
* logged that the transition was vetoed (good)
* did not create a workflow transition record in the database (good)
* updated the workflow status to the new state (bad!)
* saved the record (good)

🐛 Bug report
Status

Active

Version

1.8

Component

Miscellaneous

Created by

🇨🇦Canada jdhildeb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024