Redirecting to a another URL with the core or token action breaks Workflow access' grants settings, especially on first state change. As discussed in #298716: redirect to URL action troubles, drupal_goto exits and therefore prevents any further code execution. We need a better drupal_goto in core to solve the least, but workflow could solve the issue with its own access module by incorporating these two changes:

  1. Execute the state transition hook of Workflow access (workflow_access_workflow) before any other actions get triggered by setting its weight lower than Workflow’s.
  2. Execute any state transition hook implementation (hook_workflow) even on the very first state change, even if $node->workflow_scheduled is not set at all.
CommentFileSizeAuthor
#1 workflow-6.x-1.4.patch944 bytesmoritzz

Comments

moritzz’s picture

StatusFileSize
new944 bytes
Bastlynn’s picture

Status: Needs review » Closed (won't fix)

Since this request is over a year old, I'm going to assume a solution was found or you've moved on. If not, please get updated to the latest versions of all modules and make a patch for it against Drupal 7 and I'll be glad to take a look at it.