* Save the preBranch in qa module.

This commit is contained in:
wangxuepeng
2023-12-28 13:51:36 +08:00
parent 8eec279435
commit ba3ccdd6dd
3 changed files with 20 additions and 6 deletions
+3 -5
View File
@@ -216,12 +216,10 @@ class bugZen extends bug
{
if($productType == 'normal') return 'all';
if($this->cookie->preBranch !== '' && $branch === '') $branch = (string)$this->cookie->preBranch;
/* 如果是多分支产品时,设置分支的 cookie。*/
/* Set branch cookie if product is multi-branch. */
helper::setcookie('preBranch', $branch);
if($branch === '') $branch = $this->cookie->preBranch;
if($branch === '' || $branch === false) $branch = '0';
$this->session->set('branch', $branch, 'qa');
helper::setcookie('preBranch', $branch);
return $branch;
}