* [bug#53580,done,0.5h] remove conditions for modified builds.
This commit is contained in:
@@ -6,9 +6,6 @@ $(function()
|
||||
|
||||
function changeResolvedBuild(event)
|
||||
{
|
||||
const resolution = $('[name=resolution]').val();
|
||||
if(resolution != 'fixed') return false;
|
||||
|
||||
if($(event.target).val() != bug.resolvedBuild && bug.resolvedBuild != '')
|
||||
{
|
||||
zui.Modal.confirm({message: confirmUnlinkBuild, onResult: function(result)
|
||||
|
||||
+1
-1
@@ -1970,7 +1970,7 @@ class bugZen extends bug
|
||||
{
|
||||
/* 解除旧的版本关联关系,关联新的版本。*/
|
||||
/* Unlink old resolved build and link new resolved build. */
|
||||
if($bug->resolution == 'fixed' && !empty($bug->resolvedBuild) && $bug->resolvedBuild != $oldBug->resolvedBuild)
|
||||
if(!empty($bug->resolvedBuild) && $bug->resolvedBuild != $oldBug->resolvedBuild)
|
||||
{
|
||||
if(!empty($oldBug->resolvedBuild)) $this->loadModel('build')->unlinkBug((int)$oldBug->resolvedBuild, $bug->id);
|
||||
$this->bug->linkBugToBuild($bug->id, $bug->resolvedBuild);
|
||||
|
||||
Reference in New Issue
Block a user