* code for task #89150.

This commit is contained in:
wangyidong
2023-03-31 10:46:52 +08:00
parent d2de18b9b3
commit e24a70f5b7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ class doc extends control
if($objectType == 'project')
{
$objects = $this->loadModel('project')->getPairs();
$this->view->executions = array(0 => '') + $this->loadModel('execution')->getPairs($objectID, 'all', 'multiple');
$this->view->executions = array(0 => '') + $this->loadModel('execution')->getPairs($objectID, 'all', 'multiple,leaf,noprefix');
}
elseif($objectType == 'execution')
{
+1 -1
View File
@@ -21,7 +21,7 @@ function loadObjectModules(objectType, objectID)
*/
function loadExecutions(projectID)
{
var link = createLink('project', 'ajaxGetExecutions', "projectID=" + projectID + "&executionID=0&mode=multiple");
var link = createLink('project', 'ajaxGetExecutions', "projectID=" + projectID + "&executionID=0&mode=multiple,leaf,noprefix");
$('#executionBox').load(link, function(){$('#executionBox').find('select').attr('data-placeholder', holders.execution).attr('onchange', "loadObjectModules('execution', this.value)").chosen()});
loadObjectModules('project', projectID);
}
+1 -1
View File
@@ -201,7 +201,7 @@ class project extends control
{
$project = $this->project->getByID($projectID);
if(!$project->multiple) return;
$executions = $this->loadModel('execution')->getByProject($projectID, 'undone', 0, true);
$executionMembers = $this->dao->select('t1.root,t2.name')->from(TABLE_TEAM)->alias('t1')
->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.root=t2.id')