Commit afb081cb4de1585101b6e48daf64b86d0f8daaf4
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'hotfixes' into stable
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/box_organizer_controller.rb
... | ... | @@ -94,7 +94,7 @@ class BoxOrganizerController < ApplicationController |
94 | 94 | path_list = if boxes_holder.is_a?(Environment) && boxes_holder.enabled?('use_portal_community') && boxes_holder.portal_community |
95 | 95 | boxes_holder.portal_community.articles.find(:all, :conditions=>"name ILIKE '%#{search}%' or path ILIKE '%#{search}%'", :limit=>20).map { |content| "/{portal}/"+content.path } |
96 | 96 | elsif boxes_holder.is_a?(Profile) |
97 | - boxes_holder.articles.find(:all, :conditions=>"name ILIKE '%#{search}%' or path ILIKE '%#{search}%'", :limit=>20).map { |content| "/{profile}/"+content.path } | |
97 | + boxes_holder.articles.find(:all, :conditions=>"articles.name ILIKE '%#{search}%' or articles.path ILIKE '%#{search}%'", :limit=>20).map { |content| "/{profile}/"+content.path } | |
98 | 98 | else |
99 | 99 | [] |
100 | 100 | end | ... | ... |