...
|
...
|
@@ -121,7 +121,7 @@ class Style extends Backend |
|
|
$params = $this->preExcludeFields($params);
|
|
|
|
|
|
if ($params['pid'] != $row['pid']) {
|
|
|
$childrenIds = Tree::instance()->init(collection(\app\common\model\style::select())->toArray())->getChildrenIds($row['id'], true);
|
|
|
$childrenIds = Tree::instance()->init(collection($this->model->select())->toArray())->getChildrenIds($row['id'], true);
|
|
|
if (in_array($params['pid'], $childrenIds)) {
|
|
|
$this->error(__('父组别不能是它自己'));
|
|
|
}
|
...
|
...
|
|