* [misc,done,0.2h] fix switch pager error under the execution dynamic page.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user