Browse Source

Fix, update also cat data with parent

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

+ 5 - 0
modules/module_blog_categories_act_modify.go

@@ -133,6 +133,11 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 			}
 		}
 
+		// Update target cat data
+		if _, err := tx.Exec("UPDATE blog_cats SET name = ?, alias = ? WHERE id = ?;", pf_name, pf_alias, pf_id); err != nil {
+			return err
+		}
+
 		wrap.LogError("--------------------------------")
 
 		/*