Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The 7.x-1.x commits from the following issues added $live_revision->revision = 0
during workbench_moderation_store()
.
- #1436260: Saving nodes outside Workbench Moderation leads to incorrect state transitions (e.g., "needs review" appearing as published)
- #2308095: URL alias reverts to Automatic generate alias when published
Only one is required. Patch to remove the extraneous one to follow. Thanks!
Comment | File | Size | Author |
---|---|---|---|
#5 | workbench_moderation-workbench_moderation_store_cleanup-2421009-5.patch | 371 bytes | jbylsma |
#1 | workbench_moderation-workbench_moderation_store_cleanup-2421009-2.patch | 410 bytes | jbylsma |
Comments
Comment #1
jbylsma CreditAttribution: jbylsma commentedAttached patch.
Comment #3
ladybug_3777 CreditAttribution: ladybug_3777 commentedThe issue is bigger than this. That patch you referenced changes the behavior of pathauto and it shouldn't. I believe that entire patch needs to be backed out. I left a comment on this post with more detail: https://www.drupal.org/node/2308095
Comment #4
ladybug_3777 CreditAttribution: ladybug_3777 commentedMarking this as a duplicate of the issue that should be reverted: https://www.drupal.org/node/2308095
Comment #5
jbylsma CreditAttribution: jbylsma commentedThis is not a duplicate, and the patch provided does not address the Pathauto issue. There is a duplicate
$node->live_revision
assignment inworkbench_moderation_store()
, just minor clean up. I think reverting the Pathauto issue will be tricky and manual, so I believe this patch is still applicable.Rerolled patch attached.
Comment #6
ladybug_3777 CreditAttribution: ladybug_3777 commentedThis patch is a duplicate because you are trying to write a patch against something that needs to be reverted. The original code that caused you to raise this issue shouldn't exist in Workbench Moderation AT ALL.
Issue #2308095: CAUSED this extraneous line but it also added in pathauto logic. BOTH of those things are wrong. If issue 230895 is reverted, your patch no longer applies. Make sense?
Maybe you might also be missing that issue 230895 is an already committed patch. It's not a NEW patch we are trying to apply, its a patch we are discussing REMOVING/REVERTING.
Comment #7
ladybug_3777 CreditAttribution: ladybug_3777 commentedComment #8
jbylsma CreditAttribution: jbylsma commentedYes, it makes sense, but before there was a removal patch over in #2308095: URL alias reverts to Automatic generate alias when published, this wasn't duplicating anything. Nitpicky, I know. With the removal patch posted, I will graciously keep the duplicate status :)
Comment #9
ladybug_3777 CreditAttribution: ladybug_3777 commentedThumbs up! Thanks jbylsma!