* [task#133161] add releases and build check.

This commit is contained in:
liyang
2024-11-26 14:22:50 +08:00
committed by 曹延义
parent 4c370d8c28
commit b99b20836e
+6
View File
@@ -684,6 +684,12 @@ class system extends control
*/
public function delete(int $id)
{
$releases = $this->system->getReleasesByID($id);
if(!empty($releases)) return $this->sendError($this->lang->system->releaseExist);
$builds = $this->system->getBuildsByID($id);
if(!empty($builds)) return $this->sendError($this->lang->system->buildExist);
$this->system->delete(TABLE_SYSTEM, $id);
if(dao::isError()) return $this->sendError(dao::getError());