diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb index b7c9766b..d2fee708 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb @@ -9,19 +9,6 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController end def search_result - debug - if params[:search_query] == "" - @bulletins = get_bulletins_for_index - else - @search = Bulletin.tire.search "#{params[:search_query]}" - search_result = @search.collect{|result| result.id} - - @bulletins = Bulletin.all.available_for_lang(I18n.locale).can_display.any_in(_id:search_result).page( params[:page_main]).per(@page_num) - end - end - - - def search if params[:search_query] == "" @bulletins = get_bulletins_for_index else diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/search_result.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/search_result.html.erb index 3979362b..df681869 100644 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/search_result.html.erb +++ b/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/search_result.html.erb @@ -1,4 +1,3 @@ -
Test
<% # encoding: utf-8 %> <%= flash_messages %>