Explorar o código

图表移动判断

xyxie hai 6 meses
pai
achega
bbaa876941
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/data_manage/chart_info.go

+ 1 - 1
controllers/data_manage/chart_info.go

@@ -794,7 +794,7 @@ func (this *ChartInfoController) ChartInfoMove() {
 			br.ErrMsg = "移动失败,Err:" + tmpErr.Error()
 			return
 		}
-		if tmpChartInfo != nil {
+		if tmpErr == nil && tmpChartInfo.ChartInfoId > 0 {
 			br.Msg = "移动失败,同一个分类下图表名称不允许重复"
 			br.ErrMsg = "移动失败,同一个分类下图表名称不允许重复"
 			return