From e459d8e828982b686033da5a9ba45eba6e01dd62 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Mon, 25 Nov 2024 19:33:21 +0800 Subject: [PATCH] fix for scan --- app/controllers/universal_tables_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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