From bf62f6fa75fcf8079c35ed061fdd5755ef8ed4f1 Mon Sep 17 00:00:00 2001 From: liuruogu Date: Thu, 7 Jul 2022 03:03:59 +0000 Subject: [PATCH] * Fix bug #24959. --- module/block/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/block/control.php b/module/block/control.php index ec75a3c39f..2afd76342a 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -1802,7 +1802,7 @@ class block extends control { $this->app->loadLang('feedback'); $this->view->users = $this->loadModel('user')->getPairs('all,noletter'); - $this->view->products = $this->loadModel('product')->getPairs(); + $this->view->products = $this->dao->select('*')->from(TABLE_PRODUCT)->where('deleted')->eq('0')->fetchPairs('id', 'name'); } $count[$objectType] = count($objects);