* Fixed an issue with undefined variables when delete a release.

This commit is contained in:
tianshujie
2023-05-11 20:06:35 +08:00
parent a6f217a5d6
commit 96894d7562
+1 -1
View File
@@ -315,7 +315,7 @@ class release extends control
$this->release->delete(TABLE_RELEASE, $releaseID);
$release = $this->dao->select('*')->from(TABLE_RELEASE)->where('id')->eq((int)$releaseID)->fetch();
$build = $this->dao->select('*')->from(TABLE_BUILD)->where('id')->eq((int)$release->build)->fetch();
$builds = $this->dao->select('*')->from(TABLE_BUILD)->where('id')->in($release->build)->fetchAll();
$this->dao->update(TABLE_BUILD)->set('deleted')->eq(1)->where('id')->eq($release->shadow)->exec();
foreach($builds as $build)
{