correction order DESC sur les comptages

This commit is contained in:
Damien LASSERRE 2012-04-10 07:29:26 +00:00
parent b0207bf239
commit bb82175e59

View File

@ -163,7 +163,7 @@ Class Object_Dashboard
if ($criteres != null){ if ($criteres != null){
$comptage = new Table_Comptages(); $comptage = new Table_Comptages();
$sql = $comptage->select() $sql = $comptage->select()
->where('idDefinition = ?', $id); ->where('idDefinition = ?', $id)->order('dateAjout DESC');
$comptages = $comptage->fetchAll($sql)->toArray(); $comptages = $comptage->fetchAll($sql)->toArray();
} }
return (array_merge(array('comptages' => $comptages), array('criteres' => $criteres))); return (array_merge(array('comptages' => $comptages), array('criteres' => $criteres)));