Explorar o código

Change order of projects in dropdown

Alan Lam %!s(int64=2) %!d(string=hai) anos
pai
achega
f21b0e714b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/reports.php

+ 1 - 1
controllers/reports.php

@@ -62,7 +62,7 @@ if(!is_array($location_ids)) {
 
 $all_projects = Project::query([
 	"customer_id" => $customer->id
-]);
+], ["sort" => "dts_start", "order" => "desc"]);
 
 if(Core::$user->isCustomer()) {
 	// Filter to only projects that have past the deadline