This commit is contained in:
Yagami
2019-10-14 15:57:01 +08:00
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ class ztclient
$controlAPI = $this->zentao->root . $module . $this->zentao->requestFix . $method . $this->zentao->requestFix;
if($vars)
{
$vars = parse_str($vars);
parse_str($vars, $vars);
foreach($vars as $var) $controlAPI .= $var . $this->zentao->requestFix;
}
$controlAPI = rtrim($controlAPI, $this->zentao->requestFix) . '.json';
+9 -2
View File
@@ -173,11 +173,18 @@ class task extends control
}
$users = $this->loadModel('user')->getPairs('noclosed|nodeleted');
$moduleIdList = $this->tree->getAllChildID($moduleID);
$stories = $this->story->getProjectStoryPairs($projectID, 0, 0, $moduleIdList);
$members = $this->project->getTeamMemberPairs($projectID, 'nodeleted');
$moduleOptionMenu = $this->tree->getTaskOptionMenu($projectID);
/* Fix bug #2737. When moduleID is not story module. */
$moduleIdList = array();
if($moduleID)
{
$moduleID = $this->tree->getStoryModule($moduleID);
$moduleIdList = $this->tree->getAllChildID($moduleID);
}
$stories = $this->story->getProjectStoryPairs($projectID, 0, 0, $moduleIdList);
$title = $project->name . $this->lang->colon . $this->lang->task->create;
$position[] = html::a($taskLink, $project->name);
$position[] = $this->lang->task->common;