|
@@ -326,7 +326,7 @@ func (this *EnglishReportController) EditClassify() {
|
|
|
}
|
|
|
//二级分类不允许改成三级分类
|
|
|
if oldItem.ParentId > 0 && oldItem.ParentId == oldItem.RootId {
|
|
|
- if parent.ParentId > 0 && parent.ParentId != parent.RootId {
|
|
|
+ if parent.ParentId > 0 {
|
|
|
//即将改为为三级分类
|
|
|
br.Msg = "二级分类不允许更改为三级分类"
|
|
|
return
|
|
@@ -390,7 +390,7 @@ func (this *EnglishReportController) EditClassify() {
|
|
|
}
|
|
|
|
|
|
if item.RootId != oldItem.RootId {
|
|
|
- err = models.UpdateEnglishClassifyRootIdByParentId(item.Id, oldItem.RootId)
|
|
|
+ err = models.UpdateEnglishClassifyRootIdByParentId(item.Id, item.RootId)
|
|
|
if err != nil {
|
|
|
br.Msg = "保存失败"
|
|
|
br.ErrMsg = "保存失败,Err:" + err.Error()
|