Skip to content
Snippets Groups Projects
Commit fa578036 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-436] Workbench Moderation UNL patch applied in wrong place

UNL fix applied to WBM 1.2 upgrade in commit 74670880
was mistakening placed inside if statement.
parent 0101afaf
No related branches found
No related tags found
No related merge requests found
......@@ -660,11 +660,13 @@ function workbench_moderation_node_presave($node) {
else {
$node->status = 0;
}
}
/* START UNL CHANGE */
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;
}
}
/* END UNL CHANGE */
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment