Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datatable search results shows number of pages only after clicking "next" (2.1.22 + 2.2.1) #5066

Open
HonkXL opened this issue Dec 3, 2024 · 4 comments

Comments

@HonkXL
Copy link

HonkXL commented Dec 3, 2024

When I am searching for a name (or anything else), the results-page only shows a 1:

image

When I click "next", then I will see the real page number:

image

I think the page number should be shown on the first page, too.

@HonkXL
Copy link
Author

HonkXL commented Dec 3, 2024

can reproduce this in 2.2.1, too.

@HonkXL HonkXL changed the title Datatable search results shows number of pages only after clicking "next" (2.1.22) Datatable search results shows number of pages only after clicking "next" (2.1.22 + 2.2.1) Dec 3, 2024
@mpwt
Copy link
Contributor

mpwt commented Dec 5, 2024

Could the problem be related to the theme used? The problem does not occur in the demo area with all standard themes.

@kiwi3685
Copy link
Contributor

kiwi3685 commented Dec 5, 2024

Could the problem be related to the theme used? The problem does not occur in the demo area with all standard themes.

Sorry, I disagree. I see the problem clearly in the demo.
Important to note two requirements to reproduce thus:

  • Generate the table from "Search", not List>Individuals
  • Ensure the result will have more than one page ( greater than 10 results)

I used Search > General, looking for "queen". This gets a lot of results in the "Royals" family tree

@HonkXL
Copy link
Author

HonkXL commented Dec 5, 2024

No - it also happens in the official demo of 2.2.1
Use this link:
https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo%2Fsearch-general&query=Duke

This will open a search for "Duke". This brings 38 hits, so 4 pages would be required, but only one is displayed:

image

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

No branches or pull requests

3 participants