diff --git a/app/legacy_lib/query_supporters.rb b/app/legacy_lib/query_supporters.rb index f1d15fb00..916836aa8 100644 --- a/app/legacy_lib/query_supporters.rb +++ b/app/legacy_lib/query_supporters.rb @@ -709,6 +709,8 @@ def self.loose_name_match "regexp_replace (lower(name),'[^0-9a-z]','','g')" end + # gets the last words in the name field. If there's a single word, it gets that. If there's multiple words, then it just gets + # everything but the first one def self.calculated_last_name " CASE