* Fix bug config.
This commit is contained in:
@@ -85,6 +85,8 @@ $config->bug->fieldList['openedBy']['title'] = 'openedBy';
|
||||
$config->bug->fieldList['openedDate']['title'] = 'openedDate';
|
||||
|
||||
$config->bug->fieldList['openedBuild']['title'] = 'openedBuild';
|
||||
$config->bug->fieldList['openedBuild']['foreignKey'] = true;
|
||||
$config->bug->fieldList['openedBuild']['foreignKeySource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'openedBuild&id,name');
|
||||
|
||||
$config->bug->fieldList['assignedTo']['title'] = 'assignedTo';
|
||||
|
||||
|
||||
@@ -3457,6 +3457,12 @@ class bugModel extends model
|
||||
$relatedObjectIdList[$bug->$object] = $bug->$object;
|
||||
}
|
||||
|
||||
if($object == 'openedBuild')
|
||||
{
|
||||
$relatedObjectIdList = array('trunk' => $this->lang->trunk) + $relatedObjectIdList;
|
||||
$object = 'build';
|
||||
}
|
||||
|
||||
/* Get related objects title or names. */
|
||||
$table = $this->config->objectTables[$object];
|
||||
if($table) $relatedObjects = $this->dao->select($pairs)->from($table) ->where('id')->in($relatedObjectIdList)->fetchPairs();
|
||||
|
||||
Reference in New Issue
Block a user