specify / specify7

Specify 7
https://www.specifysoftware.org/products/specify-7/
GNU General Public License v2.0
66 stars 36 forks source link

Cannot search/replace default values in Workbench #4917

Closed lexiclevenger closed 5 months ago

lexiclevenger commented 5 months ago

Describe the bug Searching for a value filled using the 'Use Default Value' causes mapping option 'Replace all Matches' to fail.

To Reproduce Steps to reproduce the behavior:

  1. Go to Workbench
  2. Create or use an existing data set with empty cells
  3. Under Data Mapping, click 'Mapping Options' (gear icon) next to a column with empty cells
  4. Enable 'Use Default Value' checkbox, input a default value, save
  5. Go to grid editor
  6. Search for the default value you chose and hit enter
  7. Input a different value for 'Replace' and hit enter
  8. See that the values are not replaced

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

https://github.com/specify/specify7/assets/164079735/f42d8efc-e6e6-4b7c-8f4c-a846321c918c

Specify 7 System Information - 2024-05-13T21_35_28.426Z.txt

Please, also fill out the following information manually:

grantfitzsimmons commented 5 months ago

@lexiclevenger Does this work in v7.9.3.1?

grantfitzsimmons commented 5 months ago

I don't think you should be able to search/replace default values anyway. Maybe we can open this issue if we think it is necessary to filter out default values in this case?