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