作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

规格bug修改

... ... @@ -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(__('父组别不能是它自己'));
}
... ...