Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small fix

  • Loading branch information...
commit 0b51aacabe0ca34529e2965af7c78e26cb92853a 1 parent e752cbf
@dimus dimus authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/name_resolver.rb
View
2  app/models/name_resolver.rb
@@ -411,7 +411,7 @@ 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_id]), 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(last_classification_id), NameString.connection.quote(dr[:data_source_id])])
match[:current_taxon_id] = last_classification_id
match[:current_name_string] = ns if ns
end
Please sign in to comment.
Something went wrong with that request. Please try again.