Explorar o código

edit catalog: dont show delete btn on products with relations

Alexander Musikhin hai 7 meses
pai
achega
587efbabad
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      app/Models/Product.php

+ 2 - 3
app/Models/Product.php

@@ -126,12 +126,11 @@ class Product extends Model
         if($this->maf_orders && ($this->maf_orders->count() > 0)) {
             return true;
         }
-
+        
         if($this->orders && ($this->orders->count() > 0)) {
             return true;
         }
-
-
+        
         return false;
     }