Parcourir la source

fix bug with date_processed sorting being done on string field instead of timestamp field

Jad Meouchy il y a 9 ans
Parent
commit
41bc85ad34
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      db.php

+ 1 - 1
db.php

@@ -169,7 +169,7 @@ function getRowsByCompany($id_company, $week_number = null)
 				WHERE WEEK(date_processed) = :week_number
 			)
 		) " : "") .
-		"ORDER BY date_processed DESC
+		"ORDER BY file_row.date_processed DESC
 		LIMIT 5000";
 
 	$stmt = $dbh->prepare($sql);