diff --git a/module/block/view/dashboard.html.php b/module/block/view/dashboard.html.php index 808d69f0ee..71bf0df93a 100644 --- a/module/block/view/dashboard.html.php +++ b/module/block/view/dashboard.html.php @@ -33,11 +33,13 @@ if(isset($pageCSS)) css::internal($pageCSS); @@ -56,12 +58,4 @@ config.confirmRemoveBlock = 'block->confirmRemoveBlock; ?>'; var module = ''; getExtViewFile(__FILE__)){include $extView; return helper::cd();}?> - + diff --git a/module/bug/control.php b/module/bug/control.php index d2c6acea50..8d29c3c216 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -66,9 +66,9 @@ class bug extends control /* Set productID, moduleID, queryID and branch. */ $productID = $this->product->saveState($productID, $this->products); - $branch = ($branch == '') ? $this->cookie->preBranch : $branch; + $branch = ($branch == '') ? (int)$this->cookie->preBranch : (int)$branch; setcookie('preProductID', $productID, $this->config->cookieLife, $this->config->webRoot); - setcookie('preBranch', $branch, $this->config->cookieLife, $this->config->webRoot); + setcookie('preBranch', (int)$branch, $this->config->cookieLife, $this->config->webRoot); if($this->cookie->preProductID != $productID or $this->cookie->preBranch != $branch) { @@ -230,7 +230,7 @@ class bug extends control /* Get product, then set menu. */ $productID = $this->product->saveState($productID, $this->products); - if($branch === '') $branch = $this->cookie->preBranch; + if($branch === '') $branch = (int)$this->cookie->preBranch; $branches = $this->session->currentProductType == 'normal' ? array() : $this->loadModel('branch')->getPairs($productID); $this->bug->setMenu($this->products, $productID, $branch); @@ -367,7 +367,7 @@ class bug extends control /* Get product, then set menu. */ $productID = $this->product->saveState($productID, $this->products); - if($branch === '') $branch = $this->cookie->preBranch; + if($branch === '') $branch = (int)$this->cookie->preBranch; $this->bug->setMenu($this->products, $productID, $branch); /* If projectID is setted, get builds and stories of this project. */ diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index e1f0135a39..27f771289e 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -126,8 +126,18 @@ js::set('refresh', $lang->refresh);
bug->severity;?> - bug->severityList));?> - + bug->severityList as $severityKey => $severityValue) + { + if($severityKey != $severityValue) + { + $hasCustomSeverity = true; + break; + } + } + ?> + bug->severityList, $severity, "class='form-control minw-80px'");?>