I only have two states on the site I'm working on: Draft and Published. If I use VBO to moderate an existing node's current draft to Published, it appears that both the draft and the old published version are set to Published, but the old one is made Current.

Here's a screenshot:

A node's Moderate tab, showing two revisions Published simultaneously

Revision 1614 is my draft — when I view it it looks how I want it to — but the old revision, 1578, gets a Published --> Published moderation at the same timestamp as the Draft --> Published on 1614.

(There are several other VBO-related issues open, but I think this may be different from all of them. Apologies if it's a dupe.)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

75th Trombone created an issue. See original summary.

Lanny Heidbreder’s picture

Issue summary: View changes
vikrama1k1’s picture

+1 having same issue.
Please help @75th Trombone ,if you have solved the issue

vikrama1k1’s picture

Problem Solved

downgrading module to the older version of (Workbench Moderation 7.x-1.4) solved my problem.

jday’s picture

We see the same issue using VBO 7.x-3.5, Workbench Moderation 7.x-3.0, and Drafy 7.x-1.0-rc1 so far no luck tracking down the odd behavior.

govind.maloo’s picture

Status: Active » Needs review
FileSize
1.06 KB

Hi

In Workbench Moderation 7.x-3.0 entity_presave and hook_node_insert/update is calling the same function multiple time and causing misjudgement in state and revision by an external event from other modules.

Status: Needs review » Needs work

The last submitted patch, 6: vbo-2844723-6.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

govind.maloo’s picture

Status: Needs work » Needs review
FileSize
615 bytes

Correct patch

Status: Needs review » Needs work

The last submitted patch, 8: vbo-2844723-8.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

hmdnawaz’s picture

@govind.maloo your patch works. But the problem is it sets the published version into draft and set it as current revision.

workbench

Therefore this patch can't be used. Is there any workaround for this?

hmdnawaz’s picture

agentrickard’s picture

Status: Needs work » Closed (duplicate)