Page 1 of 1

Page number / Pagination sticks across views

Posted: Mon Aug 09, 2021 10:26 pm
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)

Re: Page number / Pagination sticks across views

Posted: Tue Aug 10, 2021 2:09 am
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.

Re: Page number / Pagination sticks across views

Posted: Fri Aug 20, 2021 2:52 pm
by phil56
Same thing on Debian Buster with 1.36.5 and ubuntu focal with 1.37.1

Phil