Fix import bug.
This commit is contained in:
parent
e172816c36
commit
005f221b99
|
@ -33,8 +33,7 @@ module Admin::EventNewsHelper
|
||||||
value = {}
|
value = {}
|
||||||
anns = EventNews.new
|
anns = EventNews.new
|
||||||
row.cells.each_with_index do |cell,index|
|
row.cells.each_with_index do |cell,index|
|
||||||
next if cell.nil?
|
val = cell.nil? ? nil : cell.value
|
||||||
val = cell.value
|
|
||||||
next if val.nil? || val == ""
|
next if val.nil? || val == ""
|
||||||
case index
|
case index
|
||||||
when 0
|
when 0
|
||||||
|
|
Loading…
Reference in New Issue