Преглед на файлове

edit catalog: dont show delete btn on products with relations

Alexander Musikhin преди 7 месеца
родител
ревизия
587efbabad
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  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;
     }