shish 5 éve
szülő
commit
5082d491af
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      app-pt/controllers/ShopAdminController.php

+ 2 - 2
app-pt/controllers/ShopAdminController.php

@@ -61,7 +61,7 @@ class ShopAdminController extends BaseController
                 foreach ($ghsList as $ghs) {
                     $customId = $ghs->customId;
                     $ghs->delete();
-                    $current = CustomClass::getById($customId);
+                    $current = CustomClass::getById($customId, true);
                     if (!empty($current)) {
                         $current->delete();
                     }
@@ -72,7 +72,7 @@ class ShopAdminController extends BaseController
                 foreach ($customList as $custom) {
                     $ghsId = $custom->ghsId;
                     $custom->delete();
-                    $current = GhsClass::getById($ghsId);
+                    $current = GhsClass::getById($ghsId, true);
                     if (!empty($current)) {
                         $current->delete();
                     }