zoneminder icon indicating copy to clipboard operation
zoneminder copied to clipboard

ZM Event web paging issue

Open basildane opened this issue 3 years ago • 2 comments

Describe Your Environment

  • Version of ZoneMinder [1.36.19]
  • How you installed ZoneMinder [PPA]
  • Full name and version of OS [Ubuntu 20.04]
  • Browser name and version [Brave 1.40.105]

If the issue concerns a camera

Describe the bug When "paging", using the page controls at the bottom of the events page, the current page is remembered between sessions and events. For example, you open a camera and browse to page 5. Open another camera, the NEW camera you just opened is displaying page 5. It should default to page 1. Even worse, when visiting the page even days later, it remembers what page you were on in the last session and puts you into that page by default. So you end up looking at events that are days old wondering why, then you have to go to the bottom and click "1" - every single time.

To Reproduce Steps to reproduce the behavior:

  1. Go to Console
  2. Click on any channel
  3. Click on a page (ie 5)
  4. Go to another channel
  5. You are on page 5 on the Other channel

Expected behavior When opening the application fresh, or when changing to a new channel, you should start at page 1.

Debug Logs

basildane avatar Jun 22 '22 13:06 basildane

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

welcome[bot] avatar Jun 22 '22 13:06 welcome[bot]

The problem is that the ZoneMinder web page sets a cookie: zmEventsTable.bs.table.pageNumber This page number is remembered and puts you on an unexpected page every time you open the application.

basildane avatar Jun 28 '22 16:06 basildane

The issue is that we use this cookie feature to remember the visible columns, etc as well. It would be best to not use it for paging I think.

connortechnology avatar Jan 03 '23 16:01 connortechnology

SO I looked into it. We can turn off the cookie for the pagenumber no problem. However then if we do a page reload, it puts us back on page 1.

I kinda think that is preferable to the current behaviour. @knight-of-ni do you have any thoughts on the matter?

connortechnology avatar Jan 03 '23 20:01 connortechnology

Another option would be to include the channel number in the cookie, so the cookie would intelligently follow the page for the correct channel. But, this sounds good too.

basildane avatar Jan 03 '23 21:01 basildane