* Set the value of deleted product line to 0.

This commit is contained in:
wumo
2018-03-23 04:10:50 +08:00
parent 061b323440
commit ef8e72fc0e
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -1396,6 +1396,7 @@ class treeModel extends model
$this->fixModulePath($module->root, $module->type);
if($module->type == 'line') $this->dao->update(TABLE_PRODUCT)->set('line')->eq('0')->where('line')->eq($moduleID)->exec();
if($module->type == 'task') $this->dao->update(TABLE_TASK)->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();