app/services/decidim/proposals/collaborative_draft_search.rb in decidim-proposals-0.23.6 vs app/services/decidim/proposals/collaborative_draft_search.rb in decidim-proposals-0.24.0.rc1
- old
+ new
@@ -19,10 +19,10 @@
#
# We can't use the search from `ResourceFilter` since these fields aren't
# translated.
def search_search_text
query
- .where("title::text ILIKE ?", "%#{search_text}%")
+ .where("title ILIKE ?", "%#{search_text}%")
.or(query.where("body ILIKE ?", "%#{search_text}%"))
end
# Handle the state filter
def search_state