diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 2bded6e434..99530f4941 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -5843,7 +5843,7 @@ class upgradeModel extends model foreach($bugs as $bugID => $linkBugs) { $linkBugs = explode(',', $linkBugs); - $this->dao->update(TABLE_BUG)->set("linkBug = TRIM(BOTH ',' from CONCAT(relatedbug, ',$bugID'))")->where('id')->in($linkBugs)->andWhere('id')->ne($bugID)->andWhere("CONCAT(',', linkBug, ',')")->notlike("%,$bugID,%")->exec(); + $this->dao->update(TABLE_BUG)->set("linkBug = TRIM(BOTH ',' from CONCAT(linkBug, ',$bugID'))")->where('id')->in($linkBugs)->andWhere('id')->ne($bugID)->andWhere("CONCAT(',', linkBug, ',')")->notlike("%,$bugID,%")->exec(); } return !dao::isError();