* [misc,done,0.2h] fix switch pager error under the execution dynamic page.

This commit is contained in:
tianshujie
2025-01-09 14:38:31 +08:00
committed by 刘梦艺
parent bcd45064fa
commit 5edf124dd6
+1 -1
View File
@@ -2545,7 +2545,7 @@ class execution extends control
/* 获取这个时间段的操作日志列表。*/
$period = $type == 'account' ? 'all' : $type;
$orderBy = $direction == 'next' ? 'date_desc' : 'date_asc';
$date = empty($date) ? '' : date('Y-m-d', $date);
$date = empty($date) ? '' : date('Y-m-d', (int)$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($dateGroups, 1) - count($dateGroups) : $this->action->getDynamicCount();