* Fix bug of recTotal in execution::dynamic.

This commit is contained in:
liumengyi
2023-11-01 17:34:31 +08:00
parent f35acf4920
commit cb7acc10d3
+1 -2
View File
@@ -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');