xyxie il y a 1 an
Parent
commit
a07f0966ad
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      services/data/edb_classify.go

+ 2 - 2
services/data/edb_classify.go

@@ -826,7 +826,7 @@ func moveEdbClassify(parentEdbClassifyInfo, edbClassifyInfo, prevClassify, nextC
 				}
 			}
 
-			edbClassifyInfo.Sort = prevClassify.Sort + 1
+			edbClassifyInfo.Sort = prevSort + 1
 			edbClassifyInfo.ModifyTime = time.Now()
 			updateCol = append(updateCol, "Sort", "ModifyTime")
 		} else if prevClassify == nil && nextClassify == nil && prevEdbInfo == nil && nextEdbInfo == nil && parentClassifyId > 0 {
@@ -933,7 +933,7 @@ func moveEdbClassify(parentEdbClassifyInfo, edbClassifyInfo, prevClassify, nextC
 				}
 			}
 
-			edbInfo.Sort = prevEdbInfo.Sort + 1
+			edbInfo.Sort = prevSort + 1
 			edbInfo.ModifyTime = time.Now()
 			updateCol = append(updateCol, "Sort", "ModifyTime")
 		} else if prevClassify == nil && nextClassify == nil && prevEdbInfo == nil && nextEdbInfo == nil && parentClassifyId > 0 {