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
Unexpected formatting of results in the search dialog #4844
Comments
This is the 'expected' behavior for this case currently. The results in search dialogs do not use the formatting returned from the backend. specify7/specifyweb/frontend/js_src/lib/components/SearchDialog/index.tsx Lines 196 to 204 in 7971012
Instead, they use the frontend formatting code and display those results.
specify7/specifyweb/frontend/js_src/lib/components/Formatters/formatters.ts Lines 101 to 120 in 7971012
The same formatting logic is used when formatting the table records within a QueryCombobox: Although directly searching using the QueryComboBox returns Preferably, all the 'Query Result'-style formatting should be consistent. We should either use the frontend method of creating a naive formatter, or use the backend's Regardless, unless others disagree, this is probably something that can be addressed after the |
Describe the bug
When there is an accession format with no fields defined and then you go to an accession querycombobox and click search it returns different results from the querycombobox itself
To Reproduce
Steps to reproduce the behavior:
<formatter not defined>
)Expected behavior
The search results should either show
<formatter not defined>
or just return the accession number as it does in 7.9.3Screenshots
edge
khEl6w39kn.mp4
7.9.3
Please, also fill out the following information manually:
Specify 7 System Information - 2024-04-26T14_05_26.695Z.txt
The text was updated successfully, but these errors were encountered: