From 46879558bb9925aa6b321d789936b23210f4b94c Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 22 Nov 2022 09:52:08 +0800 Subject: [PATCH] * Fix bug#30027. --- module/product/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/control.php b/module/product/control.php index f20461fef2..f2b5839aef 100755 --- a/module/product/control.php +++ b/module/product/control.php @@ -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;