|
|
@@ -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();
|
|
|
}
|