From c5b328f7c6f4685f45bbee8a965f3aa114229412 Mon Sep 17 00:00:00 2001 From: FR25930 Date: Wed, 15 Feb 2017 13:51:12 +0100 Subject: [PATCH] Correction #2199 Histotique avec date visite et non date commission --- application/services/Etablissement.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/services/Etablissement.php b/application/services/Etablissement.php index e3009c09..99a8c27c 100755 --- a/application/services/Etablissement.php +++ b/application/services/Etablissement.php @@ -355,7 +355,8 @@ public function getHistorique($id_etablissement) } if ( $value != null && (!isset( $historique[$key] ) || $tmp["valeur"] != $value )) { - $date = new Zend_Date($dossier->DATEVISITE_DOSSIER != null ? $dossier->DATEVISITE_DOSSIER : $dossier->DATECOMM_DOSSIER, Zend_Date::DATES); + + $date = new Zend_Date($dossier->DATECOMM_DOSSIER != null ? $dossier->DATECOMM_DOSSIER : $dossier->DATEVISITE_DOSSIER, Zend_Date::DATES); if ($tmp != null) { $historique[$key][ count($historique[$key])-1 ]["fin"] = $date->get( Zend_Date::DAY_SHORT." ".Zend_Date::MONTH_NAME_SHORT." ".Zend_Date::YEAR ); }