* Fix the problem that the name of the edited release build under the project is displayed incorrectly.

This commit is contained in:
tianshujie98
2021-08-20 11:02:03 +08:00
parent 848ef0e72b
commit 18ae5d27ba
-8
View File
@@ -113,14 +113,6 @@ class buildModel extends model
}
if(!$builds) return $sysBuilds + $selectedBuilds;
/* if the build has been released, replace build name with release name. */
$releases = $this->dao->select('build, name')->from(TABLE_RELEASE)
->where('build')->in(array_keys($builds))
->beginIF($branch)->andWhere('branch')->in("0,$branch")->fi()
->andWhere('deleted')->eq(0)
->fetchPairs();
foreach($releases as $buildID => $releaseName) $builds[$buildID] = $releaseName;
return $sysBuilds + $builds + $selectedBuilds;
}