Force tree definition filter in Taxon QCBX Query Builder search #6153
Labels
1 - Bug
Incorrect behavior of the product
1 - Enhancement
Improvements or extensions to existing behavior
geospecify
Milestone
Follow up to #6142
#6142 adds a default mapping line to the query builder search which filters on the tree definition associated with the selected COT. Theoretically, this mapping line could be removed from the search after which the query would return Taxon names from all Taxon trees. This can lead to saving a CO with a Determination -> Taxon that is not associated with the selected COT.
Solution:
A solution to this would be to force the filter in the query builder search regardless of whether the default mapping line exists or not.
The QueryBuilder should have access to the COT's tree definition through the
TreeDefinitionContext
in QCBX.specify7/specifyweb/frontend/js_src/lib/components/QueryComboBox/index.tsx
Line 391 in e245b47
The text was updated successfully, but these errors were encountered: