* Adjust code.
This commit is contained in:
@@ -115,6 +115,9 @@ class artifactrepo extends control
|
||||
{
|
||||
if($confirm == 'yes')
|
||||
{
|
||||
$linkBuild = $this->dao->select('*')->from(TABLE_BUILD)->where('artifactRepoID')->eq($artifactRepoID)->fetch();
|
||||
if($linkBuild) return $this->send(array('result' => 'fail', 'message' => $this->lang->artifactrepo->deleteError));
|
||||
|
||||
$this->artifactrepo->delete(TABLE_ARTIFACTREPO, $artifactRepoID);
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
|
||||
|
||||
@@ -13,4 +13,5 @@ $lang->artifactrepo->type = 'Type';
|
||||
$lang->artifactrepo->status = 'Status';
|
||||
$lang->artifactrepo->url = 'Repo Address';
|
||||
|
||||
$lang->artifactrepo->confirmDelete = 'Are you sure you want to delete this aritfact repo?';
|
||||
$lang->artifactrepo->confirmDelete = 'The artifact repo cannot be restored after deletion. Are you sure you want to continue?';
|
||||
$lang->artifactrepo->deleteError = 'The artifact repo is already associated with a build. Please cancel the association and try again';
|
||||
|
||||
@@ -13,4 +13,5 @@ $lang->artifactrepo->type = '类型';
|
||||
$lang->artifactrepo->status = '状态';
|
||||
$lang->artifactrepo->url = '库地址';
|
||||
|
||||
$lang->artifactrepo->confirmDelete = '您确认要删除该制品库吗?';
|
||||
$lang->artifactrepo->confirmDelete = '制品库删除后无法还原,你确认要继续么?';
|
||||
$lang->artifactrepo->deleteError = '当前制品库中制品已关联版本,请取消关联后重试。';
|
||||
|
||||
Reference in New Issue
Block a user