diff --git a/include/class.dept.php b/include/class.dept.php index ceff70a47084409a9b5b02eebcff703db808b139..8f09237c4b37fc721d4a9a25367984414e9e9afd 100644 --- a/include/class.dept.php +++ b/include/class.dept.php @@ -388,6 +388,11 @@ implements TemplateVariable { ->filter(array('dept_id' => $id)) ->update(array('dept_id' => $cfg->getDefaultDeptId())); + // Move tasks + Task::objects() + ->filter(array('dept_id' => $id)) + ->update(array('dept_id' => $cfg->getDefaultDeptId())); + //Move Dept members: This should never happen..since delete should be issued only to empty Depts...but check it anyways Staff::objects() ->filter(array('dept_id' => $id))