Skip to content

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

@alesan99

Description

@alesan99

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

Metadata

Metadata

Assignees

Labels

1 - BugIncorrect behavior of the product

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions