diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-21 23:54:02 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-21 23:54:02 +0200 |
commit | 33e58e1596209f9250e221cf5ae05588c5ec4eea (patch) | |
tree | 76dfc0715ed3ce56e6f84c712a29f52f1c07734e | |
parent | 748b7bf7c5c4df2d546ae375d9c13b5657e431df (diff) | |
download | chd_gestion-33e58e1596209f9250e221cf5ae05588c5ec4eea.zip chd_gestion-33e58e1596209f9250e221cf5ae05588c5ec4eea.tar.gz chd_gestion-33e58e1596209f9250e221cf5ae05588c5ec4eea.tar.bz2 |
fix deprecated code AppView (datepicker field order)
-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}}']]); } } |