* Add empty option for execution Drop-down selection.

This commit is contained in:
tianshujie
2023-03-29 11:32:48 +08:00
parent 381e1fea4c
commit 300cbe8f04
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -154,7 +154,7 @@ class doc extends control
$objects = $this->project->getPairsByProgram();
if($this->app->tab == 'doc')
{
$this->view->executionPairs = $this->execution->getPairs($objectID, 'all', 'multiple,leaf,noprefix');
$this->view->executionPairs = $this->execution->getPairs($objectID, 'all', 'multiple,leaf,noprefix,empty');
$this->view->project = $this->project->getById($objectID);
}
}
@@ -1448,7 +1448,7 @@ class doc extends control
public function ajaxGetExecution($projectID)
{
$executions = $this->execution->getList($projectID);
$executionPairs = array(0 => '') + $this->execution->getPairs($projectID, 'all', 'multiple,leaf,noprefix');
$executionPairs = array(0 => '') + $this->execution->getPairs($projectID, 'all', 'multiple,leaf,noprefix,empty');
$project = $this->project->getById($projectID);
$disabled = $project->multiple ? '' : 'disabled';
+1 -1
View File
@@ -1606,7 +1606,7 @@ class executionModel extends model
*
* @param int $projectID
* @param string $type all|sprint|stage|kanban
* @param string $mode all|noclosed|stagefilter|withdelete|multiple|leaf|order_asc or empty
* @param string $mode all|noclosed|stagefilter|withdelete|multiple|leaf|order_asc|empty|noprefix
* @access public
* @return array
*/