Skip to content

Fix: Avoid endless AJAX table update requests if the query returned 0 rows on the Log page.#4838

Merged
connortechnology merged 4 commits into
ZoneMinder:masterfrom
IgorA100:patch-769833
May 21, 2026
Merged

Fix: Avoid endless AJAX table update requests if the query returned 0 rows on the Log page.#4838
connortechnology merged 4 commits into
ZoneMinder:masterfrom
IgorA100:patch-769833

Conversation

@IgorA100

Copy link
Copy Markdown
Contributor

Related to #4826

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an infinite AJAX refresh loop on the Classic skin Log page when the server returns zero log rows, by preventing bootstrap-table from repeatedly forcing a page change.

Changes:

  • Disabled the bootstrapTable('selectPage', 1) call that was triggering repeated AJAX refreshes when data.rows.length === 0.
  • Added inline comments explaining why the page-reset code was removed and referencing prior pagination work.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web/skins/classic/views/js/log.js Outdated
Comment thread web/skins/classic/views/js/log.js Outdated
@IgorA100

Copy link
Copy Markdown
Contributor Author

@connortechnology
I committed dcf03c8 after Copilot's suggestion.
Ask Copilot to check the code again.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread web/skins/classic/views/js/log.js Outdated
Comment thread web/skins/classic/views/js/log.js Outdated
IgorA100 and others added 2 commits May 20, 2026 20:35
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@IgorA100

Copy link
Copy Markdown
Contributor Author

@connortechnology
I made some minor changes.
Done.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@connortechnology connortechnology merged commit d6d536e into ZoneMinder:master May 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants