* Finish task #36875.

This commit is contained in:
holan20180123
2021-03-25 11:41:09 +08:00
parent 92986ae8ea
commit ce1edb39fc
2 changed files with 14 additions and 1 deletions
+2
View File
@@ -56,6 +56,8 @@ $config->bug->editor->resolve = array('id' => 'comment', 'tools' => 'bugTools
$config->bug->editor->close = array('id' => 'comment', 'tools' => 'bugTools');
$config->bug->editor->activate = array('id' => 'comment', 'tools' => 'bugTools');
$config->bug->discardedTypes = array('interface', 'designchange', 'newfeature', 'trackthings');
global $lang;
$config->bug->search['module'] = 'bug';
$config->bug->search['fields']['title'] = $lang->bug->title;
+12 -1
View File
@@ -287,6 +287,9 @@ class bug extends control
$this->qa->setMenu($this->products, $productID);
/* Unset discarded types. */
foreach($this->config->bug->discardedTypes as $type) unset($this->lang->bug->typeList[$type]);
/* Whether there is a object to transfer bug, for example feedback. */
$extras = str_replace(array(',', ' '), array('&', ''), $extras);
parse_str($extras, $output);
@@ -782,7 +785,15 @@ class bug extends control
$this->bug->checkBugExecutionPriv($bug);
/* Set the menu. */
$this->bug->setMenu($this->products, $productID, $bug->branch);
if($this->app->openApp == 'project') $this->loadModel('project')->setMenu($bug->project);
if($this->app->openApp == 'execution') $this->loadModel('execution')->setMenu($bug->execution);
if($this->app->openApp == 'qa') $this->bug->setMenu($this->products, $productID, $bug->branch);
/* Unset discarded types. */
foreach($this->config->bug->discardedTypes as $type)
{
if($bug->type != $type) unset($this->lang->bug->typeList[$type]);
}
/* Set header and position. */
$this->view->title = $this->lang->bug->edit . "BUG #$bug->id $bug->title - " . $this->products[$productID];