* fix bug 13182
This commit is contained in:
@@ -227,6 +227,15 @@ class releaseModel extends model
|
||||
->remove('files,labels,allchecker,uid')
|
||||
->get();
|
||||
$release = $this->loadModel('file')->processImgURL($release, $this->config->release->editor->edit['id'], $this->post->uid);
|
||||
|
||||
/* update release project and branch */
|
||||
if($release->build)
|
||||
{
|
||||
$buildInfo = $this->dao->select('project, branch')->from(TABLE_BUILD)->where('id')->eq($release->build)->fetch();
|
||||
$release->branch = $buildInfo->branch;
|
||||
$release->project = $buildInfo->project;
|
||||
}
|
||||
|
||||
$this->dao->update(TABLE_RELEASE)->data($release)
|
||||
->autoCheck()
|
||||
->batchCheck($this->config->release->edit->requiredFields, 'notempty')
|
||||
|
||||
Reference in New Issue
Block a user