Add errors when attempting to update non-updatable fields

This commit is contained in:
Matt-Yorkley
2018-08-20 15:16:18 +01:00
parent 0f627cdf39
commit b57c6cf9ac
9 changed files with 135 additions and 82 deletions

View File

@@ -14,6 +14,7 @@ module Admin
@filepath = save_uploaded_file(params[:file])
@importer = ProductImport::ProductImporter.new(File.new(@filepath), spree_current_user, params[:settings])
@original_filename = params[:file].try(:original_filename)
@non_updatable_fields = ProductImport::EntryValidator.non_updatable_fields
check_file_errors @importer
check_spreadsheet_has_data @importer