diff options
Diffstat (limited to 'fai_gestion/src/View')
-rw-r--r-- | fai_gestion/src/View/AppView.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fai_gestion/src/View/AppView.php b/fai_gestion/src/View/AppView.php index a1baf19..aef76bd 100644 --- a/fai_gestion/src/View/AppView.php +++ b/fai_gestion/src/View/AppView.php @@ -58,7 +58,7 @@ class AppView extends View public function initialize() { parent::initialize(); - if ($this->request->action === 'add' || $this->request->action === 'edit') { + if ( in_array($this->request->getParam('action'), ['add', 'edit']) ) { $this->loadHelper('Form', ['templates'=> ['dateWidget' => '{{day}}{{month}}{{year}}']]); } } |