Explorar el Código

fixed visit templates query

= hace 3 años
padre
commit
0510437bbc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Models/Pro.php

+ 1 - 1
app/Models/Pro.php

@@ -140,7 +140,7 @@ class Pro extends Model
 
     public function visitTemplates() {
         //TODO: use visit access
-        return VisitTemplate::all();
+        return VisitTemplate::where('is_active', true)->get();
     }
 
     public function currentWork() {