Explorar el Código

Admin patients list sort fix

Vijayakrishnan hace 3 años
padre
commit
28b4e37394
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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";
         }