From 0f3edd793dd2c0dabd1c191760dba2ea4da195c6 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 27 Mar 2024 10:08:20 +0800 Subject: [PATCH] * Fix bug#47080. --- module/program/control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/program/control.php b/module/program/control.php index 8fc5c06172..0109152146 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -169,6 +169,8 @@ class program extends control $this->view->program = $program; } + $this->loadModel('product')->refreshStats(true); + $this->view->title = $this->lang->program->product; $this->view->position[] = $this->lang->program->product; $this->view->programID = $programID; @@ -176,7 +178,7 @@ class program extends control $this->view->orderBy = $orderBy; $this->view->pager = $pager; $this->view->users = $this->loadModel('user')->getPairs('noletter'); - $this->view->products = $this->loadModel('product')->getStats($orderBy, $pager, $browseType, '', 'story', $programID); + $this->view->products = $this->product->getStats($orderBy, $pager, $browseType, '', 'story', $programID); $this->view->userIdPairs = $this->user->getPairs('noletter|showid'); $this->view->usersAvatar = $this->user->getAvatarPairs(''); $this->view->showBatchEdit = $this->cookie->showProductBatchEdit;