Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -140,7 +140,7 @@ class bug extends control
|
||||
$bug->resolvedBuild = isset($builds[$bug->resolvedBuild]) ? $builds[$bug->resolvedBuild] : $bug->resolvedBuild;
|
||||
}
|
||||
|
||||
$memberPairs = $this->user->getPairs('noletter');
|
||||
$memberPairs = $this->user->getPairs('noletter|nodeleted');
|
||||
|
||||
$title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->common;
|
||||
$position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID]);
|
||||
|
||||
@@ -646,6 +646,7 @@ class commonModel extends model
|
||||
$preAndNextObject = new stdClass();
|
||||
|
||||
if(strpos('story, task, bug, testcase, doc', $type) === false) return $preAndNextObject;
|
||||
if($this->session->{$type . 'PreAndNext'} and $this->session->{$type . 'PreAndNext'}['objectID'] == $objectID) return $this->session->{$type . 'PreAndNext'}['preAndNextObject'];
|
||||
$table = $this->config->objectTables[$type];
|
||||
|
||||
/* Get objectIDs. */
|
||||
@@ -692,6 +693,7 @@ class commonModel extends model
|
||||
if($preObj !== true) $preObj = $object;
|
||||
}
|
||||
|
||||
$this->session->set($type . 'PreAndNext', array('objectID' => $objectID, 'preAndNextObject' => $preAndNextObject));
|
||||
return $preAndNextObject;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user