Vova Tkach 6 years ago
parent
commit
825a42f9f6
1 changed files with 0 additions and 3 deletions
  1. 0 3
      modules/module_blog_categories_act_modify.go

+ 0 - 3
modules/module_blog_categories_act_modify.go

@@ -111,7 +111,6 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 
 		if targetL > parentR {
 			// From right to left
-
 			// Shift
 			step := targetR - targetL + 1
 			if _, err := tx.Exec("UPDATE blog_cats SET lft = lft + ? WHERE lft > ? and lft < ?;", step, parentR, targetL); err != nil {
@@ -134,10 +133,8 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 			}
 		} else {
 			// From left to right
-
 			// Shift
 			step := targetR - targetL + 1
-			// 8 - 3 + 1 = 6
 			if _, err := tx.Exec("UPDATE blog_cats SET lft = lft - ? WHERE lft > ? and lft < ?;", step, targetR, parentR); err != nil {
 				return err
 			}