integer key value fixed

This commit is contained in:
Harry Bomrah 2017-02-15 18:43:13 +08:00
parent f72dec2e33
commit 1256040bc7
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class Admin::UniversalTablesController < OrbitAdminController
sheet = workbook[0]
if sheet.count <= 503
columns = sheet[1].cells.collect{|c|
table.table_columns.where(:key => c.value).first rescue nil
table.table_columns.where(:key => c.value.to_s).first rescue nil
}
languages = sheet[2].cells.collect{|c|
c.value.split("-").last rescue nil