From cb7acc10d331c8f8fc162fd2c57ac98ca4983ad8 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 1 Nov 2023 17:34:31 +0800 Subject: [PATCH] * Fix bug of recTotal in execution::dynamic. --- module/execution/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 718130a000..32e613ea93 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2362,8 +2362,7 @@ class execution extends control $date = empty($date) ? '' : date('Y-m-d', $date); $actions = $this->loadModel('action')->getDynamic($account, $period, $orderBy, 50, 'all', 'all', $executionID, $date, $direction); $dateGroups = $this->action->buildDateGroup($actions, $direction); - - if(empty($recTotal)) $recTotal = count($dateGroups) < 2 ? count($actions) : $this->action->getDynamicCount(); + if(empty($recTotal)) $recTotal = count($dateGroups) < 2 ? count(reset($dateGroups)) : $this->action->getDynamicCount(); $this->view->title = $execution->name . $this->lang->colon . $this->lang->execution->dynamic; $this->view->userIdPairs = $this->loadModel('user')->getTeamMemberPairs($executionID, 'execution', 'nodeleted|useid');