Skip to content
Snippets Groups Projects
Commit 5766270c authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Merge branches 'develop' and 'master' of https://git.unicaen.fr/lib/unicaen/app

parents 32de5345 76a33dfe
Branches
Tags 3.0.8
No related merge requests found
Pipeline #6161 failed
......@@ -57,7 +57,7 @@ class FormControlGroup extends AbstractHelper
protected $helpers = [
Date::class => 'formDate',
DateInfSup::class => 'formDateInfSup',
DateTime::class => 'formDateTime',
// DateTime::class => 'formDateTime',
];
......@@ -254,6 +254,9 @@ class FormControlGroup extends AbstractHelper
$helper = $this->getView()->plugin('formSearchAndSelect');
$helper->setAutocompleteMinLength(2);
$html = $helper($element);
} elseif($element instanceof DateTime) {
$helper = $this->getView()->plugin('formDateTime');
$html = $helper($element);
}else{
if (is_string($pluginClass)) {
$helper = $this->getView()->plugin($pluginClass);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment