فهرست منبع

Change order of projects in dropdown

Alan Lam 2 سال پیش
والد
کامیت
f21b0e714b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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