From 55d43dff8f6b93027a97bebc2cf05335abfa1bc2 Mon Sep 17 00:00:00 2001 From: manson Date: Mon, 16 Jun 2014 10:32:39 +0800 Subject: [PATCH] Fix announcement search page --- app/controllers/pages_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 9e65741..688ef50 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -207,6 +207,7 @@ class PagesController < ApplicationController @item = Item.root.children.where(:module_app_id => module_app.id).first unless @item @item = Item.where(:module_app_id => module_app.id).first unless @item + @item = Item.where(:module_app_id => module_app.id, :app_frontend_url=>"search_result").first if !params['search_query'].blank? end raise PageError,'Missing Frontend Page' if @item.nil? end