Fix announcement search page

This commit is contained in:
manson 2014-06-16 10:32:39 +08:00
parent f3bb20ee45
commit 504f47ce2b
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ class PagesController < ApplicationController
@item = Item.root.children.where(:module_app_id => module_app.id).first unless @item @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).first unless @item
@item = Item.where(:module_app_id => module_app.id, :app_frontend_url=>"search_result").first if !params['search_query'].blank?
end end
raise PageError,'Missing Frontend Page' if @item.nil? raise PageError,'Missing Frontend Page' if @item.nil?
end end