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