diff --git a/library/WsScore/Entreprise/v0.9/Service.php b/library/WsScore/Entreprise/v0.9/Service.php index 3acc1189..fe297204 100644 --- a/library/WsScore/Entreprise/v0.9/Service.php +++ b/library/WsScore/Entreprise/v0.9/Service.php @@ -986,7 +986,7 @@ class Entreprise extends Scores_Ws_Server // --- Selection de l'historique $histo = array(); - $histoSql = "SELECT * FROM jo.greffes_affaires_histo WHERE idAffaire='".$affaireResult->idAffaire."' ORDER BY dateInsert DESC"; + $histoSql = "SELECT * FROM jo.greffes_affaires_histo WHERE idAffaire='".$affaireResult->idAffaire."' ORDER BY dateDecision DESC"; try { $histoResult = $db->fetchAll($histoSql, null, Zend_DB::FETCH_OBJ); if (count($histoResult) > 0) {