Skip to content

Commit

Permalink
use correct local variable for label_for_search_field and sort_field_…
Browse files Browse the repository at this point in the history
…label
  • Loading branch information
Darren Hardy committed May 31, 2017
1 parent 908c55c commit 8c65031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/blacklight/configuration_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ def view_label view
# can't be found.
def label_for_search_field(key)
field_config = blacklight_config.search_fields[key]
field_config ||= Blacklight::Configuration::NullField.new(key: field)
field_config ||= Blacklight::Configuration::NullField.new(key: key)

field_config.display_label('search')
end

def sort_field_label(key)
field_config = blacklight_config.sort_fields[key]
field_config ||= Blacklight::Configuration::NullField.new(key: field)
field_config ||= Blacklight::Configuration::NullField.new(key: key)

field_config.display_label('sort')
end
Expand Down

0 comments on commit 8c65031

Please sign in to comment.