Browse Source

Admin patients list sort fix

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
28b4e37394
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/AdminController.php

+ 1 - 1
app/Http/Controllers/AdminController.php

@@ -190,7 +190,7 @@ class AdminController extends Controller
 
         $sortBySQL = "$sortBy $sortDir NULLS LAST";
 
-        if($sortBy !== 'client_engagement_status_category' || $request->input('status')) {
+        if($sortBy !== 'client_engagement_status_category' && $request->input('status')) {
             $sortBySQL = "client_engagement_status_category DESC NULLS LAST";
         }