Skip to content

Wrong label-filter values with alt-Names #16

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jannikFranz
Copy link

When sorting objects by label, get the values for the label-filter properties not based on the position of the object label but on its string value.

Beispiel_FehlerInSortierung

A person entry has a regular name "Leibowitz, Ellen" and an alternative name "Adler, Ellen".
In the entry for "Adler, Ellen" inside the model, the alphabet filter property has the wrong value "L" (and vice versa for "Leibowitz, Ellen") because the property is created based on the "label-filter" map and the position of the label in the "labels" array. "Adler, Ellen" is second position in the "labels" array, in the "label-filter" properties however, the key on second position holds the values for "Leibowitz, Ellen". Instead of getting the values based on their position in the "labels" array, get them based on their key, which holds the label.

When sorting objects by label, get the values for the label-filter properties not based on the position of the object label but on its value.
@jannikFranz
Copy link
Author

(in the first commit I made a wrong change, fixed it in third commit "Update function edwebapi:order-items")

@jannikFranz jannikFranz force-pushed the master branch 2 times, most recently from 61fcd85 to 9e95eee Compare October 31, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant