Browse Source

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

Jad Meouchy 9 năm trước cách đây
mục cha
commit
41bc85ad34
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);