From 9fd464a5925a0a9f7f4d1485bb21740a075422f9 Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Tue, 22 Mar 2022 18:30:35 +0100 Subject: [PATCH 1/3] IBX-1819: Added missing update path to DateFieldType --- lib/Form/Type/FieldType/DateFieldType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Form/Type/FieldType/DateFieldType.php b/lib/Form/Type/FieldType/DateFieldType.php index 25a431dc9..d7315aa96 100644 --- a/lib/Form/Type/FieldType/DateFieldType.php +++ b/lib/Form/Type/FieldType/DateFieldType.php @@ -18,7 +18,7 @@ */ class DateFieldType extends AbstractType { - private const EDIT_VIEWS = ['ez_content_draft_edit', 'ezplatform.content.translate']; + private const EDIT_VIEWS = ['ez_content_draft_edit', 'ezplatform.content.translate', 'ez_user_update']; /** @var \Symfony\Component\HttpFoundation\RequestStack */ private $requestStack; From a29e16b76629c3255a88de4ba5c86421c4bd6a6d Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Thu, 24 Mar 2022 10:42:35 +0100 Subject: [PATCH 2/3] CS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dawid ParafiƄski --- lib/Form/Type/FieldType/DateFieldType.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Form/Type/FieldType/DateFieldType.php b/lib/Form/Type/FieldType/DateFieldType.php index cc61b12d4..772054333 100644 --- a/lib/Form/Type/FieldType/DateFieldType.php +++ b/lib/Form/Type/FieldType/DateFieldType.php @@ -19,7 +19,6 @@ class DateFieldType extends AbstractType { private const EDIT_VIEWS = ['ez_content_draft_edit', 'ezplatform.content.translate', 'ibexa.content.translate_with_location', 'ez_user_update']; - /** @var \Symfony\Component\HttpFoundation\RequestStack */ private $requestStack; From 8ef7497ad97c0946071e7a72bd8dd10536b013cc Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Thu, 24 Mar 2022 10:43:39 +0100 Subject: [PATCH 3/3] IBX-1819: CS --- lib/Form/Type/FieldType/DateFieldType.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Form/Type/FieldType/DateFieldType.php b/lib/Form/Type/FieldType/DateFieldType.php index 772054333..802bb2f6f 100644 --- a/lib/Form/Type/FieldType/DateFieldType.php +++ b/lib/Form/Type/FieldType/DateFieldType.php @@ -18,7 +18,13 @@ */ class DateFieldType extends AbstractType { - private const EDIT_VIEWS = ['ez_content_draft_edit', 'ezplatform.content.translate', 'ibexa.content.translate_with_location', 'ez_user_update']; + private const EDIT_VIEWS = [ + 'ez_content_draft_edit', + 'ezplatform.content.translate', + 'ibexa.content.translate_with_location', + 'ez_user_update' + ]; + /** @var \Symfony\Component\HttpFoundation\RequestStack */ private $requestStack;