integer key value fixed
This commit is contained in:
parent
f72dec2e33
commit
1256040bc7
|
@ -41,7 +41,7 @@ class Admin::UniversalTablesController < OrbitAdminController
|
||||||
sheet = workbook[0]
|
sheet = workbook[0]
|
||||||
if sheet.count <= 503
|
if sheet.count <= 503
|
||||||
columns = sheet[1].cells.collect{|c|
|
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|
|
languages = sheet[2].cells.collect{|c|
|
||||||
c.value.split("-").last rescue nil
|
c.value.split("-").last rescue nil
|
||||||
|
|
Loading…
Reference in New Issue