* Fix sql error in DMDB.

This commit is contained in:
zhujinyong
2023-11-29 15:05:10 +08:00
parent b3ebaa575e
commit da34a320a6
2 changed files with 15 additions and 12 deletions
+4 -1
View File
@@ -3750,7 +3750,10 @@ class bugModel extends model
$relatedObjectIdList = array();
$relatedObjects = array();
foreach($bugs as $bug) $relatedObjectIdList[$bug->$object] = $bug->$object;
foreach($bugs as $bug)
{
if(is_numeric($bug->$object)) $relatedObjectIdList[$bug->$object] = $bug->$object;
}
if($object == 'openedBuild' or $object == 'resolvedBuild') $object = 'build';