* change method name getnotemptybuilds to filterlinked.

This commit is contained in:
wangyidong
2022-11-29 17:09:40 +08:00
parent 5f0355999c
commit c04b6ff12b
5 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ class projectrelease extends control
$this->view->lastRelease = $this->projectrelease->getLast($projectID);
$this->view->users = $this->loadModel('user')->getPairs('noclosed');
$this->view->confirmLink = $this->lang->release->confirmLink;
$this->view->notEmptyBuilds = $this->build->getNotEmptyBuilds(array_keys($builds));
$this->view->notEmptyBuilds = $this->build->filterLinked(array_keys($builds));
$this->display();
}
@@ -818,7 +818,7 @@ class projectrelease extends control
foreach($releasedBuilds as $build) unset($builds[$build]);
/* Get the builds of the linked stories or bugs. */
$notEmptyBuilds = $this->build->getNotEmptyBuilds(array_keys($builds));
$notEmptyBuilds = $this->build->filterLinked(array_keys($builds));
return print(html::select('build[]', $builds, '', "class='form-control chosen' multiple data-notemptybuilds='" . join(',', $notEmptyBuilds) . "'"));
}