From 22f502c14e37aecf8f6091d16d6818027b3ebea6 Mon Sep 17 00:00:00 2001 From: Julio Date: Fri, 15 Oct 2021 12:08:36 +0200 Subject: [PATCH] Profile: Fix account edit error --- src/CoreBundle/Form/ExtraFieldType.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CoreBundle/Form/ExtraFieldType.php b/src/CoreBundle/Form/ExtraFieldType.php index 6ff7254f93..eb8e8864c2 100644 --- a/src/CoreBundle/Form/ExtraFieldType.php +++ b/src/CoreBundle/Form/ExtraFieldType.php @@ -100,6 +100,7 @@ class ExtraFieldType extends AbstractType break; case \ExtraField::FIELD_TYPE_DATE: + $defaultOptions['data'] = null; if (!empty($value)) { $defaultOptions['data'] = new DateTime($value); } @@ -108,6 +109,7 @@ class ExtraFieldType extends AbstractType break; case \ExtraField::FIELD_TYPE_DATETIME: + $defaultOptions['data'] = null; if (!empty($value)) { $defaultOptions['data'] = new DateTime($value); }