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 ); }