fix error
This commit is contained in:
parent
dc717408fe
commit
864ca46126
|
@ -1,3 +1,8 @@
|
|||
<% tmp = render_view %>
|
||||
<% @params = @index_controller.instance_variable_get(:@params) rescue {}
|
||||
@enable_search_flag = @index_controller.instance_variable_get(:@enable_search_flag) rescue false
|
||||
%>
|
||||
|
||||
<% if @enable_search_flag %>
|
||||
<style type="text/css">
|
||||
#category_select_box{
|
||||
|
@ -40,7 +45,7 @@
|
|||
}
|
||||
</style>
|
||||
<form>
|
||||
<% cats = Array(page.categories)
|
||||
<% cats = Array(@page.categories)
|
||||
if cats.include? 'all'
|
||||
cats = ModuleApp.where(key: 'announcement').first.categories
|
||||
else
|
||||
|
@ -65,4 +70,4 @@
|
|||
</div>
|
||||
</form>
|
||||
<% end %>
|
||||
<%= render_view %>
|
||||
<%= tmp %>
|
Loading…
Reference in New Issue