Fix import bug.

This commit is contained in:
BoHung Chiu 2021-07-16 15:49:43 +08:00
parent e172816c36
commit 005f221b99
1 changed files with 1 additions and 2 deletions

View File

@ -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