diff --git a/app/controller/admin/Fields.php b/app/controller/admin/Fields.php index 78f8117..9dc8680 100644 --- a/app/controller/admin/Fields.php +++ b/app/controller/admin/Fields.php @@ -191,7 +191,8 @@ class Fields extends Base { $addArr = array_diff($newArr, $oldArr); $delArr = array_diff($oldArr, $newArr); if ($delArr) { - AdminFields::destroy(['show_name' => ['in', $delArr]]); + $delArr = array_values($delArr); + (new AdminFields())->whereIn('show_name', $delArr)->delete(); } if ($addArr) { $addData = [];