Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user