Skip to content

Commit

Permalink
Fix exact search filters in selector dialogs
Browse files Browse the repository at this point in the history
Some filters require an exact search, "is", rather than "contains".
If the column number in pair[1] is in the values returned by the
exact_search method then an exact search is required.
  • Loading branch information
stevenyoungs authored and Nick-Hall committed Jan 25, 2025
1 parent ad45fa4 commit 0599d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gramps/gui/selectors/baseselector.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def setup_filter(self):
Builds the default filters and add them to the filter bar.
"""
cols = [
(pair[3], pair[1], pair[0] in self.exact_search())
(pair[3], pair[1], pair[1] in self.exact_search())
for pair in self.column_order()
if pair[0]
]
Expand Down

0 comments on commit 0599d5a

Please sign in to comment.