summaryrefslogtreecommitdiffstats
path: root/core/modules/content_moderation/src/Entity
diff options
context:
space:
mode:
authorAlex Pott2018-03-08 22:10:50 (GMT)
committerAlex Pott2018-03-08 22:10:50 (GMT)
commit6f4affd1e667a73b6b8df723466d6e793ec5ca25 (patch)
treeced089c7769b34bbfe9424f386b4190e1d1c2818 /core/modules/content_moderation/src/Entity
parentef21b947c861c9dfb2fe428c23c3c22a47c16e61 (diff)
Issue #2865223 by timmillwood, amateescu: Node type form alter sets new revision to false on subsequent saves
Diffstat (limited to 'core/modules/content_moderation/src/Entity')
-rw-r--r--core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php b/core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php
index 7e9aca3..87e1b22 100644
--- a/core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php
+++ b/core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php
@@ -54,7 +54,7 @@ class NodeModerationHandler extends ModerationHandler {
*/
public function enforceRevisionsBundleFormAlter(array &$form, FormStateInterface $form_state, $form_id) {
// Force the revision checkbox on.
- $form['workflow']['options']['#default_value']['revision'] = 'revision';
+ $form['workflow']['options']['#value']['revision'] = 'revision';
$form['workflow']['options']['revision']['#disabled'] = TRUE;
}