* fix a bug : fix getTaskOptionMenu.

This commit is contained in:
xia0ta0
2013-08-12 14:47:17 +08:00
parent 2c15082d14
commit 0304d4ae97
+8 -1
View File
@@ -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()");