Skip to content
Browse files

another typo

  • Loading branch information...
1 parent e5e8cf1 commit e752cbf5775572a35bad3f813fc3ebacf27f77bf @dimus dimus committed Mar 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/name_resolver.rb
View
4 app/models/name_resolver.rb
@@ -411,9 +411,9 @@ def format_result
if dr[:classification_path_ids]
last_classification_id = dr[:classification_path_ids].split("|").last
if last_classification_id && last_classification_id != dr[:taxon_id]
- ns = NameString.connection.select_value("select name from name_strings ns join name_string_indices nsi on nsi.name_string_id = ns.id where nsi.taxon_id = %s and data_source_id = %s limit 1" % [NameString.connection.quote(dr[:taxon]), NameString.connection.quote(dr[:data_source_id])])
+ ns = NameString.connection.select_value("select name from name_strings ns join name_string_indices nsi on nsi.name_string_id = ns.id where nsi.taxon_id = %s and data_source_id = %s limit 1" % [NameString.connection.quote(dr[:taxon_id]), NameString.connection.quote(dr[:data_source_id])])
match[:current_taxon_id] = last_classification_id
- match[:current_name_string] = ns.name if ns
+ match[:current_name_string] = ns if ns
end
end
match[:match_type] = dr[:match_type]

0 comments on commit e752cbf

Please sign in to comment.
Something went wrong with that request. Please try again.