修复筛选过滤后分页URL不正确问题

添加相关的filter以及filter相关的参数
This commit is contained in:
mhycy 2018-08-04 17:45:57 +08:00 committed by GitHub
parent 64594b7640
commit 9aec8e3714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,12 +123,20 @@ class Access_Core
$this->logs['list'] = $this->htmlEncode($this->urlDecode($list));
$this->logs['rows'] = $this->db->fetchAll($qcount)[0]['count'];
$filter = $this->request->get('filter', 'all');
$filterOptions = $this->request->get($filter);
$page = new Access_Page($this->config->pageSize, $this->logs['rows'], $pagenum, 10, array(
$filterArr = array(
'filter' => $filter,
$filter => $filterOptions
);
$page = new Access_Page($this->config->pageSize, $this->logs['rows'], $pagenum, 10, array_merge($filterArr, array(
'panel' => Access_Plugin::$panel,
'action' => 'logs',
'type' => $type,
));
)));
$this->logs['page'] = $page->show();
$this->logs['cidList'] = $this->db->fetchAll($this->db->select('DISTINCT content_id as cid, COUNT(1) as count, table.contents.title')