diff --git a/app/controllers/universal_tables_controller.rb b/app/controllers/universal_tables_controller.rb index beb411b..d819c96 100644 --- a/app/controllers/universal_tables_controller.rb +++ b/app/controllers/universal_tables_controller.rb @@ -4,7 +4,7 @@ class UniversalTablesController < ApplicationController params = OrbitHelper.params table = UTable.where(:category_id => OrbitHelper.page_categories.first).first rescue nil page = OrbitHelper.page rescue Page.where(:page_id => params[:page_id]).first - searchable_columns = [] + searchable_columns = [] if !table.nil? reset = "hide" csrf_value = (0...46).map { ('a'..'z').to_a[rand(26)] }.join @@ -16,7 +16,8 @@ class UniversalTablesController < ApplicationController query_string = '' end query_string += "&page_no=#{params_no}" if params_no.present? - csrf_input = "" + # csrf_input = "" + csrf_input = "" have_serial_number = (page.layout != 'index1') table_heads = table.table_columns.where(:display_in_index => true).asc(:order).collect do |tc| field_key = tc.key