Page number / Pagination sticks across views

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

Page number / Pagination sticks across views

Post by kitkat »

I think this might be a bug report...

If I view the a list of events for a particular camera and flip to any page but the first, then click back to the console, and then view another list of events, either for the same camera or a different one, then I'm taken to the same page number that I was previously viewing.

This happens in Firefox and Opera.

The URL for the second view does have a 'page=1' parameter but it seems to be ignored.

Code: Select all

/index.php?view=events&page=1&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=StartDateTime&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=>%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+day&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bval%5D=5
Easier to read...

Code: Select all

/index.php?view=events&page=1&filter[Query][terms][0][attr]=StartDateTime&filter[Query][terms][0][op]=>=&filter[Query][terms][0][val]=-1+day&filter[Query][terms][1][cnj]=and&filter[Query][terms][1][attr]=MonitorId&filter[Query][terms][1][op]==&filter[Query][terms][1][val]=1
ZM 1.36.5-1.el7.x86_64 from rpmfusion-free-updates
CentOS 7.9.2009 (Core)
dougmccrary
Posts: 1377
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Page number / Pagination sticks across views

Post by dougmccrary »

I confirm on ubuntu bionic with 1.36.5 and ubuntu focal with 1.37.1

Never noticed before cuz I use "ALL" rows per page.
phil56
Posts: 11
Joined: Mon Aug 09, 2021 1:40 pm

Re: Page number / Pagination sticks across views

Post by phil56 »

Same thing on Debian Buster with 1.36.5 and ubuntu focal with 1.37.1

Phil
Post Reply