When changing the state of a node, and adding a comment to that state change in the comment box provided by Workflow, the state is updated twice. For example I move a node from state "Needs Revision" to state "Staged for Publishing", and I leave a comment of "stage it.".

You can see this in the history log on the Workflow tab for the node. First the node changes from "Needs Revision" to "Staged for Publishing", then it "changes" states again from "Staged for Publishing" to "Staged for Publishing".

This doesn't happen if you don't leave a comment.

I'll attach a screenshot.

CommentFileSizeAuthor
Screenshot.png105.58 KBjrstmartin

Comments

jrstmartin’s picture

I downgraded because of this but it actually happens on 6.x-1.5 as well. Not sure if it's me. Anyone else having this issue? I always made sure to pm-uninstall, cc all, and updb.

jrstmartin’s picture

This seems to be the same problem as #472966: Avoid execute_transition twice (when using Rules, Actions). When I disable my rule (Rules module) that performs an action on the node in response to the state change, problem goes away. :/

jrstmartin’s picture

More on this and a very hackish patch is available here: Implement subsequent runs control.

Bastlynn’s picture

Version: 6.x-2.x-dev » 6.x-1.5

Dropped down to 6.x-1.5 based on report it happens there too.

johnv’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

D6 version is unmaintained right now. Let's move this issue to #472966: Avoid execute_transition twice (when using Rules, Actions)

johnv’s picture

Version: 6.x-1.5 » 7.x-2.x-dev
Component: Code » Rules
Status: Closed (duplicate) » Active

Well, this still is a problem. It happens when you activate Rules.
[EDIT: it happens without Rules, too.]

johnv’s picture

Version: 7.x-2.x-dev » 7.x-2.0-beta7
Component: Rules » Code
Status: Active » Fixed

This is fixed with this commit.

Status: Fixed » Closed (fixed)

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