Skip to content

Commit

Permalink
Make sure it's only displaying unique fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Dec 15, 2017
1 parent 9964556 commit fa23f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def search_across_settings
end

def unique_custom_fields
Spotlight::CustomField.select(:field, :configuration).distinct
Spotlight::CustomField.select(:field, :configuration).distinct.uniq(&:field)
end

configure_blacklight do |config|
Expand Down

0 comments on commit fa23f82

Please sign in to comment.