From ae7b337e6a2905946d20ba2617f5aadb1d0bdd37 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 14 Jul 2021 11:51:01 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/event_news_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/event_news_controller.rb b/app/controllers/admin/event_news_controller.rb index fb8b1b0..a4e4dc1 100644 --- a/app/controllers/admin/event_news_controller.rb +++ b/app/controllers/admin/event_news_controller.rb @@ -118,7 +118,7 @@ class Admin::EventNewsController < OrbitAdminController if sheet.count <= 503 sheet.each_with_index do |row, i| next if i < 3 - v = row.cells.first.value + v = row.cells.first.value rescue nil next if v == "" || v.nil? import_this_event_news(row, categories, tags) end