Merge branch 'master_xieqiyu_76946' into 'master'

* Fix bug#30027.

See merge request easycorp/zentaopms!6289
This commit is contained in:
孙广明
2022-11-22 02:05:50 +00:00
+1 -1
View File
@@ -32,7 +32,7 @@ class product extends control
$this->loadModel('user');
/* Get all products, if no, goto the create page. */
$this->products = $this->product->getPairs('nocode');
$this->products = $this->product->getPairs('nocode', 0, '', 'all');
$isAPI = ($this->app->viewType == 'json' or (defined('RUN_MODE') and RUN_MODE == 'api'));
if(empty($this->products) and strpos($this->config->product->skipRedirectMethod, ",$this->methodName,") === false and $this->app->getViewType() != 'mhtml' and !$isAPI) $this->locate($this->createLink('product', 'create'));
$this->view->products = $this->products;