浏览代码

fix:分类章节添加

zqbao 7 月之前
父节点
当前提交
72ce19a6f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/report_chapter_type.go

+ 1 - 1
controllers/report_chapter_type.go

@@ -137,7 +137,7 @@ func (this *ReportChapterTypeController) Add() {
 		br.ErrMsg = "获取重名报告章节失败, Err:" + e.Error()
 		return
 	}
-	if exists != nil {
+	if exists != nil && exists.ReportChapterTypeId > 0 {
 		br.Msg = "章节名称已存在"
 		return
 	}