diff --git a/README-UNL.txt b/README-UNL.txt index 112d78022d6757923bdbe02ff2bf07cb89fa8b96..1c7e55e938ccd84f146b37241329f2389140c16b 100644 --- a/README-UNL.txt +++ b/README-UNL.txt @@ -78,7 +78,11 @@ Add Trigger Support Patch to Workbench Moderation * from http://drupal.org/node/1079134 * Don't upgrade WB Moderation without first applying this patch unless the new version supports Triggers +Fix broken books in Workbench Moderation + * mode in workbench_moderation.module in workbench_moderation_node_presave() + * http://drupal.org/node/1505060 + ------------------------------------ wysiwyg/editors/js/tinymce-3.js * Comment out the part that switches wrappers from table-based to div. We need the original TinyMCE code for the PDW toggle plugin to work - + diff --git a/sites/all/modules/workbench_moderation/workbench_moderation.module b/sites/all/modules/workbench_moderation/workbench_moderation.module index 63fdbc3860e0d228ac53d36b6e5b7860599f5e16..3109acfb83e78819c7fa616c005afc47666348dd 100644 --- a/sites/all/modules/workbench_moderation/workbench_moderation.module +++ b/sites/all/modules/workbench_moderation/workbench_moderation.module @@ -596,6 +596,12 @@ function workbench_moderation_node_presave($node) { $node->status = 0; } } + /** UNL CHANGE START **/ + if (isset($node->workbench_moderation['updating_live_revision']) && !empty($node->book['bid'])) { + // Book module forces new revision in book_node_presave() that needs to be cancelled. + $node->revision = 0; + } + /** UNL CHANGE END **/ } /**