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

Search dialog does not return results for picklist values containing spaces #5336

Open
lexiclevenger opened this issue Oct 21, 2024 · 0 comments
Labels
1 - Bug Incorrect behavior of the product 2 - Queries Issues that are related to the query builder or queries in general 3 - Verified If an institution makes a request and it has been confirmed to be accurate, this tag will be used.

Comments

@lexiclevenger
Copy link
Collaborator

lexiclevenger commented Oct 21, 2024

Describe the bug

Hi Specify,
I'm configuring the search dialog for the Permit query combobox. We have a few fields in Permits that are defined picklists. I added them to the search, but selecting values from the picklists that contain spaces results in zero results. I'm guessing because it does not recognise the value as a whole string search.
In the search dialog xml, if I change those fields to straight text boxes and search via the same value using quotes, then I get results.
It would be nicer for users to be able to search by selecting a value from a picklist. (I know they can do this by going through to QB option, but that is another step)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Interactions and create a Permit record.
  2. Add a picklist value containing spaces in the Type field and save the record.
  3. Go to Interactions > Accession > Accession Authorization subview.
  4. Click on the Search button next to the Permit query combo box.
  5. Search using the same picklist value used in Step 2.
  6. See that the record you created in step 1 is not returned.

Expected behavior
Results should be returned regardless of whether a picklist value contains spaces.

Screenshots
Using Search dialog:
Screenshot 2024-10-21 at 3 33 20 PM

Using Query Builder:
Screenshot 2024-10-21 at 3 34 40 PM

https://kufish20240711-v7.test.specifysystems.org/specify/view/accession/new/

Specify 7 System Information - 2024-10-21T20_36_05.589Z.txt

Please, also fill out the following information manually:

  • OS: Mac
  • Browser: Chrome
  • Specify 7 Version: production and earlier
  • Database Name: KUFish_2024_07_11
  • Collection name: KU Fish Voucher
  • User Name: spfishadmin

Reported By
Zoe Warner from CSIRO via Asana

@lexiclevenger lexiclevenger added 1 - Bug Incorrect behavior of the product 2 - Queries Issues that are related to the query builder or queries in general 3 - Unverified If an institution makes a request and it has not yet been confirmed, this tag will be used. 3 - Verified If an institution makes a request and it has been confirmed to be accurate, this tag will be used. and removed 3 - Unverified If an institution makes a request and it has not yet been confirmed, this tag will be used. labels Oct 21, 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 2 - Queries Issues that are related to the query builder or queries in general 3 - Verified If an institution makes a request and it has been confirmed to be accurate, this tag will be used.
Projects
None yet
Development

No branches or pull requests

1 participant