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

Query Builder: Can't select a COT for Catalog Number if it shares a formatter with another COT #5503

Open
alesan99 opened this issue Dec 20, 2024 · 0 comments
Labels
1 - Bug Incorrect behavior of the product
Milestone

Comments

@alesan99
Copy link
Contributor

alesan99 commented Dec 20, 2024

Describe the bug
Related to #5485

If multiple COTs share the same formatter the selection dropdown always chooses the first one with that format. It's a little weird but the functionality works since it is the same formatter after all.
I imagine in practice most people will have a different formatter for each COT if they aren't sticking with the default, but if someone comes across this it may appear broken.

To Reproduce
Steps to reproduce the behavior:

  1. Create two CollectionObjectTypes with the same Catalog Number Format Name which differs from that of the Collection's default Catalog Number format
  2. Create a new Collection Object query, add Catalog Number to the query, and switch the type from Any to Equal
  3. Try to select both COTs, see that it selects the first COT regardless of which one you click.

Expected behavior
The COT you click on should be selected to avoid confusion. Or some sort of indicator that the behavior happens because they have the same formatter (not sure of an elegant way to do this)

Screenshots

chrome_zfCxfAL2N3.mp4
@alesan99 alesan99 added the 1 - Bug Incorrect behavior of the product label Dec 20, 2024
@alesan99 alesan99 changed the title Catalog Number Query Builder: Can't select a COT for Catalog Number if it shares a formatter with another COT Dec 20, 2024
@alesan99 alesan99 added this to the 7.9.11 milestone Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product
Projects
None yet
Development

No branches or pull requests

1 participant