* Format code for port.

This commit is contained in:
tanghucheng
2022-08-08 12:15:28 +08:00
parent 36b07367c9
commit 2eec12eeac
8 changed files with 101 additions and 109 deletions
+3 -7
View File
@@ -3532,24 +3532,20 @@ class bugModel extends model
* Get related objects id lists.
*
* @param int $object
* @param string $name
* @param string $pairs
* @access public
* @return void
*/
public function getRelatedObjects($object, $pairs = '')
{
/* Get bugs. */
$bugs = $this->dao->select('*')->from(TABLE_BUG)->where($this->session->bugQueryCondition)
->fetchAll('id');
$bugs = $this->dao->select('*')->from(TABLE_BUG)->where($this->session->bugQueryCondition)->fetchAll('id');
/* Get related objects id lists. */
$relatedObjectIdList = array();
$relatedObjects = array();
foreach($bugs as $bug)
{
$relatedObjectIdList[$bug->$object] = $bug->$object;
}
foreach($bugs as $bug) $relatedObjectIdList[$bug->$object] = $bug->$object;
if($object == 'openedBuild') $object = 'build';