diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index 8bb3c39..9e22909 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -1,6 +1,6 @@ <% params = OrbitHelper.params - page = Page.where(url:params['url']).first + page = @page || Page.where(url:params['url']).first @layout_type = 0 if page.methods.include?(:select_option_items) @show_option_items = ModuleApp.where(key: 'gallery').last.show_option_items rescue nil