Skip to content

Ressources > Domains: Pagination always assumes total number, even with filter #1309

Open
@realrellek

Description

@realrellek

Describe the bug
Say you have a bunch of domains in your froxlor across different customers. You go to Resources, Domains and want to filter for one specific user (I've entered their username because it was shorter).

Instead of the 85 domains total, we are now at like 15 domains. However, the pagination still shows all 5 pages that would have been there if the filter was not applied. This is a little confusing because you cannot be sure if you are actually at the end of the list (especially since every page displays the same content).

See screenshot.

Image

System information

  • Froxlor version: 2.2.5+nightly.8eb38a8
  • Web server: apache 2.4.whatever (from Debian Bookworm)
  • DNS server: Bind (but not actually used, I don't think (not that it'd matter))
  • POP/IMAP server: Dovecot
  • SMTP server: postfix
  • FTP server: proftpd
  • OS/Version: Debian Bookworm

To Reproduce
Steps to reproduce the behavior:

  1. Have a number of items, such as domains. Make sure it's more than would fit on one page.
  2. Go to Resources > Domains
  3. Apply a search filter (doesn't seem to matter what, I've tried with username and domain)
  4. It filters correctly, but pagination still thinks the total without the filter applies.

Expected behavior
Pagination (and number of domains on top?) should calculate with the filter applied instead of total-total.

Logfiles
n/a

Additional context
This also happens in Resources > SSL Certificates, so I'd assume it happens everywhere a pagination is presented (or at least everywhere in Resources).

Thanks for all the work :) (This is said far too rarely in open source projects)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions