mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Fix long lines
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# and begins the processing of the spreadsheet entries by the other product import classes.
|
||||
# As spreadsheets can contain any number of entries (1000+), the import is split into smaller chunks
|
||||
# of 100 items, and processed sequentially over a number of requests to avoid server timeouts.
|
||||
# The various bits of collated information such as file upload status, per-item errors or user feedback
|
||||
# The various bits of collated info such as file upload status, per-item errors or user feedback
|
||||
# on the saving process are made available to the controller through this object.
|
||||
|
||||
require 'roo'
|
||||
@@ -59,7 +59,8 @@ module ProductImport
|
||||
|
||||
def product_field_errors?
|
||||
@entries.each do |entry|
|
||||
return true if entry.errors.messages.value?([I18n.t('admin.product_import.model.not_updatable')])
|
||||
return true if entry.errors.messages.
|
||||
value?([I18n.t('admin.product_import.model.not_updatable')])
|
||||
end
|
||||
false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user