From 86f644cd6f2a4fc6a1f769193c88bcc55fe17a14 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 16 May 2016 17:35:40 +0800 Subject: [PATCH] * change for showerrornone function. --- module/product/control.php | 2 +- module/qa/control.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index a4c6ffea75..f8509fb961 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -31,7 +31,7 @@ class product extends control /* Get all products, if no, goto the create page. */ $this->products = $this->product->getPairs('nocode'); - if(empty($this->products) and strpos(',create,index,', $this->methodName) === false and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('product', 'create')); + if(empty($this->products) and strpos(',create,index,showerrornone,', $this->methodName) === false and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('product', 'create')); $this->view->products = $this->products; } diff --git a/module/qa/control.php b/module/qa/control.php index a6c21685da..c4c9db729f 100644 --- a/module/qa/control.php +++ b/module/qa/control.php @@ -28,7 +28,7 @@ class qa extends control $this->fetch('custom', 'ajaxSetHomepage', "module=qa&page=index"); } - if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=bug"))); + if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=qa"))); $homepage = $this->config->qa->homepage; if($homepage == 'browse' and $locate == 'auto') $locate = 'yes';