diff --git a/module/tree/control.php b/module/tree/control.php index 76e9d55eca..7a3ed645ef 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -303,7 +303,14 @@ class tree extends control */ public function ajaxGetOptionMenu($rootID, $viewType = 'story', $rootModuleID = 0, $returnType = 'html', $needManage = false) { - $optionMenu = $this->tree->getOptionMenu($rootID, $viewType, $rootModuleID); + if($viewType = 'task') + { + $optionMenu = $this->tree->getTaskOptionMenu($rootID); + } + else + { + $optionMenu = $this->tree->getOptionMenu($rootID, $viewType, $rootModuleID); + } if($returnType == 'html') { $output = html::select("module", $optionMenu, '', "onchange=loadModuleRelated()");