Procházet zdrojové kódy

fixed visit templates query

= před 3 roky
rodič
revize
0510437bbc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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() {