diff --git a/module/tree/model.php b/module/tree/model.php index 14f6b8566e..2107a4139a 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1450,7 +1450,7 @@ class treeModel extends model if(isset($module->root) and $module->root != $self->root) { $this->dao->update(TABLE_MODULE)->set('root')->eq($module->root)->where('id')->in($childs)->exec(); - $this->dao->update(TABLE_MODULE)->set('branch')->eq(0)->where('id')->in($childs)->exec(); + $this->dao->update(TABLE_MODULE)->set('branch')->eq($module->branch)->where('id')->in($childs)->exec(); if($self->type == 'doc') $this->dao->update(TABLE_DOC)->set('`lib`')->eq($module->root)->where('module')->eq($moduleID)->exec(); } $this->fixModulePath(isset($module->root) ? $module->root : $self->root, $self->type);