* Deal with the branch is empty.

This commit is contained in:
hufangzhou
2021-11-12 15:22:47 +08:00
parent 73a9a43999
commit 8352d145f5
6 changed files with 17 additions and 13 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ class testtask extends control
/* Set menu. */
$productID = $this->product->saveState($productID, $this->products);
$branch = ($this->cookie->preBranch and $branch === '') ? $this->cookie->preBranch : $branch;
$branch = ($this->cookie->preBranch !== '' and $branch === '') ? $this->cookie->preBranch : $branch;
$this->loadModel('qa')->setMenu($this->products, $productID, $branch, $type);
/* Load pager. */