correction order DESC sur les comptages
This commit is contained in:
parent
b0207bf239
commit
bb82175e59
@ -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)));
|
||||||
|
Loading…
Reference in New Issue
Block a user