Fix bug.
This commit is contained in:
parent
9a7c33dfce
commit
ae7b337e6a
|
@ -118,7 +118,7 @@ class Admin::EventNewsController < OrbitAdminController
|
||||||
if sheet.count <= 503
|
if sheet.count <= 503
|
||||||
sheet.each_with_index do |row, i|
|
sheet.each_with_index do |row, i|
|
||||||
next if i < 3
|
next if i < 3
|
||||||
v = row.cells.first.value
|
v = row.cells.first.value rescue nil
|
||||||
next if v == "" || v.nil?
|
next if v == "" || v.nil?
|
||||||
import_this_event_news(row, categories, tags)
|
import_this_event_news(row, categories, tags)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue