Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
app
Commits
5766270c
Commit
5766270c
authored
Jan 22, 2020
by
Laurent Lécluse
Browse files
Merge branches 'develop' and 'master' of
https://git.unicaen.fr/lib/unicaen/app
parents
32de5345
76a33dfe
Pipeline
#6161
failed with stage
in 9 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/UnicaenApp/Form/View/Helper/FormControlGroup.php
View file @
5766270c
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment