Merge branch 'master' into 'sprint_200'

# Conflicts:
#   module/execution/lang/en.php
#   module/execution/lang/zh-cn.php
#   module/execution/view/kanban.html.php
#   module/kanban/css/space.css
This commit is contained in:
王怡栋
2022-06-09 03:16:20 +00:00
1143 changed files with 1936 additions and 7700 deletions
+16
View File
@@ -1993,4 +1993,20 @@ class project extends control
}
echo json_encode($response);
}
/**
* AJAX: get executions of a project in html select.
*
* @param int $projectID
* @param int $executionID
* @access public
* @return void
*/
public function ajaxGetExecutions($projectID, $executionID = 0)
{
$executions = array('' => '') + $this->loadModel('execution')->getPairs($projectID, 'all');
if($this->app->getViewType() == 'json') return print(json_encode($executionList));
return print(html::select('execution', $executions, $executionID, "class='form-control'"));
}
}