Explorar o código

fixed pro search

= %!s(int64=3) %!d(string=hai) anos
pai
achega
b31118bf56
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/HomeController.php

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

@@ -928,7 +928,7 @@ WHERE measurement.label NOT IN ('SBP', 'DBP')
             $phoneNumberTerm = $term;
         }
 
-        $clientQuery= Client::whereNull('shadow_pro_id')
+        $clientQuery= Client::whereNotNull('shadow_pro_id')
             ->where(function ($q) use ($term, $phoneNumberTerm) {
                 $q->where('name_first', 'ILIKE', '%' . $term . '%')
                     ->orWhere('name_last', 'ILIKE', '%' . $term . '%')