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

Doctype arrows bug #29085

Open
mrPauwHaan opened this issue Jan 8, 2025 · 3 comments
Open

Doctype arrows bug #29085

mrPauwHaan opened this issue Jan 8, 2025 · 3 comments
Labels

Comments

@mrPauwHaan
Copy link

In the doctype, there are arrows to move to the next and previous document. However, for some reason, it skips some of the records.

Frappe version: latest

@mrPauwHaan mrPauwHaan added the bug label Jan 8, 2025
@cogk
Copy link
Contributor

cogk commented Jan 8, 2025

Hey @mrPauwHaan, when you navigate using the arrows, the order of the documents is based on the results of the List view. However, when you change a document before going to the next document, you change the modification date of the current document, which moves it to the top of the list, and thus breaks the arrows' behavior. This is my analysis of your problem

@mrPauwHaan
Copy link
Author

Thanks for your response @cogk. This behavior also happens without making changes. Certain records do show up in the list but not when using the arrows. When clicking on does records and using the arrows forward and backward, that record does also not show up. I was not able to figure out why these specific records do not show up.

@mrPauwHaan
Copy link
Author

mrPauwHaan commented Jan 11, 2025

After creating a post on the discuss.frappe forum, it was noticed that this issue occurs when duplicate names of the field that is used for filtering exist.

In my scenario, I was navigating through a list (sorted by a field. I had duplicate names for Company Name. After opening the first record pressing the next arrow key skipped all documents with the same name.

For us, the doctype has member names and indeed…it skips duplicate names of people with the same first name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants