Commit 09fbb15b authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

change search topics filter to behave with AND

parent 1040232d
......@@ -84,7 +84,7 @@ class SearchController < ApplicationController
topics = topics.to_s + params[:school_level] unless params[:school_level].blank?
# build hash
hash[:topics_name] = topics.split(', ') unless topics.nil?
hash[:topics_name] = { all: topics.split(', ') } unless topics.nil?
hash[:object_type] = params[:type].split(', ') unless params[:type].blank?
hash[:publisher] = params[:source].split("-s- ") unless params[:source].blank?
hash[:state] = validate_object
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment