* finish task #5061.
This commit is contained in:
@@ -82,9 +82,9 @@ class bug extends control
|
||||
if($this->cookie->preProductID != $productID or $this->cookie->preBranch != $branch)
|
||||
{
|
||||
$_COOKIE['bugModule'] = 0;
|
||||
setcookie('bugModule', 0, $this->config->cookieLife, $this->config->webRoot);
|
||||
setcookie('bugModule', 0, 0, $this->config->webRoot);
|
||||
}
|
||||
if($browseType == 'bymodule') setcookie('bugModule', (int)$param, $this->config->cookieLife, $this->config->webRoot);
|
||||
if($browseType == 'bymodule') setcookie('bugModule', (int)$param, 0, $this->config->webRoot);
|
||||
if($browseType != 'bymodule') $this->session->set('bugBrowseType', $browseType);
|
||||
|
||||
$moduleID = ($browseType == 'bymodule') ? (int)$param : ($browseType == 'bysearch' ? 0 : ($this->cookie->bugModule ? $this->cookie->bugModule : 0));
|
||||
@@ -96,7 +96,7 @@ class bug extends control
|
||||
|
||||
/* Process the order by field. */
|
||||
if(!$orderBy) $orderBy = $this->cookie->qaBugOrder ? $this->cookie->qaBugOrder : 'id_desc';
|
||||
setcookie('qaBugOrder', $orderBy, $this->config->cookieLife, $this->config->webRoot);
|
||||
setcookie('qaBugOrder', $orderBy, 0, $this->config->webRoot);
|
||||
|
||||
/* Append id for secend sort. */
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
|
||||
Reference in New Issue
Block a user