Commit 76a33dfe authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Correction de bug : les DateTime ne géraient plus les erreurs

parent 9134a08d
Pipeline #6159 failed with stage
in 18 seconds
......@@ -57,7 +57,7 @@ class FormControlGroup extends AbstractHelper
protected $helpers = [
Date::class => 'formDate',
DateInfSup::class => 'formDateInfSup',
DateTime::class => 'formDateTime',
// DateTime::class => 'formDateTime',
];
......@@ -254,7 +254,10 @@ class FormControlGroup extends AbstractHelper
$helper = $this->getView()->plugin('formSearchAndSelect');
$helper->setAutocompleteMinLength(2);
$html = $helper($element);
} else {
} elseif($element instanceof DateTime) {
$helper = $this->getView()->plugin('formDateTime');
$html = $helper($element);
}else{
if (is_string($pluginClass)) {
$helper = $this->getView()->plugin($pluginClass);
$html = $helper($element);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment