shish 3 лет назад
Родитель
Сommit
61975f8636
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-hd/controllers/KindController.php

+ 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) {