正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -121,7 +121,7 @@ class Style extends Backend | @@ -121,7 +121,7 @@ class Style extends Backend | ||
121 | $params = $this->preExcludeFields($params); | 121 | $params = $this->preExcludeFields($params); |
122 | 122 | ||
123 | if ($params['pid'] != $row['pid']) { | 123 | if ($params['pid'] != $row['pid']) { |
124 | - $childrenIds = Tree::instance()->init(collection(\app\common\model\style::select())->toArray())->getChildrenIds($row['id'], true); | 124 | + $childrenIds = Tree::instance()->init(collection($this->model->select())->toArray())->getChildrenIds($row['id'], true); |
125 | if (in_array($params['pid'], $childrenIds)) { | 125 | if (in_array($params['pid'], $childrenIds)) { |
126 | $this->error(__('父组别不能是它自己')); | 126 | $this->error(__('父组别不能是它自己')); |
127 | } | 127 | } |
-
请 注册 或 登录 后发表评论