Profile: Fix account edit error

pull/4032/head
Julio 3 years ago
parent 34a9cf33dc
commit 22f502c14e
  1. 2
      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);
}

Loading…
Cancel
Save