From 0399ee3358e990f1fa90cb06a98d60afd2db171b Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Wed, 10 Dec 2014 11:27:55 +0800 Subject: [PATCH] * fix bug#647. --- module/tree/model.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module/tree/model.php b/module/tree/model.php index 3d1e60fa5c..153ffb7ace 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1008,9 +1008,15 @@ class treeModel extends model $this->fixModulePath($module->root, $module->type); if($module->type == 'task') $this->dao->update(TABLE_TASK)->set('module')->eq($module->parent)->where('module')->in($childs)->exec(); - if($module->type == 'story') $this->dao->update(TABLE_STORY)->set('module')->eq($module->parent)->where('module')->in($childs)->exec(); if($module->type == 'bug') $this->dao->update(TABLE_BUG)->set('module')->eq($module->parent)->where('module')->in($childs)->exec(); if($module->type == 'case') $this->dao->update(TABLE_CASE)->set('module')->eq($module->parent)->where('module')->in($childs)->exec(); + if($module->type == 'story') + { + $this->dao->update(TABLE_STORY)->set('module')->eq($module->parent)->where('module')->in($childs)->exec(); + $this->dao->update(TABLE_TASK)->set('module')->eq($module->parent)->where('module')->in($childs)->exec(); + $this->dao->update(TABLE_BUG)->set('module')->eq($module->parent)->where('module')->in($childs)->exec(); + $this->dao->update(TABLE_CASE)->set('module')->eq($module->parent)->where('module')->in($childs)->exec(); + } return true; }