From 33e58e1596209f9250e221cf5ae05588c5ec4eea Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 21 Jul 2018 23:54:02 +0200 Subject: fix deprecated code AppView (datepicker field order) --- fai_gestion/src/View/AppView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}}']]); } } -- cgit v1.1