From 0ea4e521739505d01e6cdca398e1d2a22b5028ac Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Mon, 22 Nov 2010 05:18:54 +0000 Subject: [PATCH] +fix the bug#152 --- module/tree/control.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/tree/control.php b/module/tree/control.php index e277a28cf4..7edcd813ca 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -118,7 +118,12 @@ class tree extends control echo js::alert($this->lang->tree->successSave); die(js::reload('parent')); } - $this->view->module = $this->tree->getById($moduleID); + $module = $this->tree->getById($moduleID); + if($module->owner == null) + { + $module->owner = $this->loadModel('product')->getById($module->root)->bugOwner; + } + $this->view->module = $module; $this->view->optionMenu = $this->tree->getOptionMenu($this->view->module->root, $this->view->module->type); $this->view->users = $this->loadModel('user')->getPairs('noclosed');