shish 3 жил өмнө
parent
commit
61975f8636

+ 1 - 1
app-hd/controllers/KindController.php

@@ -53,7 +53,7 @@ class KindController extends BaseController
         $inTurn = $post['inTurn'] ?? 0;
         $name = $post['name'] ?? '';
         $name = trim($name);
-        $list = KindClass::getAllByCondition(['mainId' => $this->mainId, 'delStatus' => 0], null, '*', true);
+        $list = KindClass::getAllByCondition(['mainId' => $this->mainId, 'delStatus' => 0], null, '*', null, true);
         foreach ($list as $key => $item) {
             $currentName = $item->name ?? '';
             if ($currentName == $name && $item->id != $kind->id) {