summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Rowlands2018-05-02 20:53:14 (GMT)
committerLee Rowlands2018-05-02 20:53:14 (GMT)
commit64640c24f04e9fd398cb931c910adb7bd13df239 (patch)
treed97f950f46431ab87e5fe1bcac185f230f90267c
parent3134f5c4e9cf9b1e91de0cab6b7a99edd04abe7f (diff)
Issue #2942578 by Sam152: Content Moderation module marked as stable produces failures in Workbench Moderation assets loading
-rw-r--r--core/modules/content_moderation/src/Form/EntityModerationForm.php1
-rw-r--r--core/modules/content_moderation/templates/entity-moderation-form.html.twig1
-rw-r--r--core/themes/stable/templates/content-edit/entity-moderation-form.html.twig1
3 files changed, 1 insertions, 2 deletions
diff --git a/core/modules/content_moderation/src/Form/EntityModerationForm.php b/core/modules/content_moderation/src/Form/EntityModerationForm.php
index 0674b68..34af4ea 100644
--- a/core/modules/content_moderation/src/Form/EntityModerationForm.php
+++ b/core/modules/content_moderation/src/Form/EntityModerationForm.php
@@ -128,6 +128,7 @@ class EntityModerationForm extends FormBase {
];
$form['#theme'] = ['entity_moderation_form'];
+ $form['#attached']['library'][] = 'content_moderation/content_moderation';
return $form;
}
diff --git a/core/modules/content_moderation/templates/entity-moderation-form.html.twig b/core/modules/content_moderation/templates/entity-moderation-form.html.twig
index 7638e37..bae2fc9 100644
--- a/core/modules/content_moderation/templates/entity-moderation-form.html.twig
+++ b/core/modules/content_moderation/templates/entity-moderation-form.html.twig
@@ -1,4 +1,3 @@
-{{ attach_library('content_moderation/content_moderation') }}
<ul class="entity-moderation-form">
<li class="entity-moderation-form__item">{{ form.current }}</li>
<li class="entity-moderation-form__item">{{ form.new_state }}</li>
diff --git a/core/themes/stable/templates/content-edit/entity-moderation-form.html.twig b/core/themes/stable/templates/content-edit/entity-moderation-form.html.twig
index 7638e37..bae2fc9 100644
--- a/core/themes/stable/templates/content-edit/entity-moderation-form.html.twig
+++ b/core/themes/stable/templates/content-edit/entity-moderation-form.html.twig
@@ -1,4 +1,3 @@
-{{ attach_library('content_moderation/content_moderation') }}
<ul class="entity-moderation-form">
<li class="entity-moderation-form__item">{{ form.current }}</li>
<li class="entity-moderation-form__item">{{ form.new_state }}</li>