From dfe8beae2c7556e6d1eabd04b309cb9decb4ac4f Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Fri, 24 Feb 2023 13:06:32 +0100 Subject: [PATCH] fix: article category remove option from list --- app/models/supplier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/supplier.rb b/app/models/supplier.rb index 92201022..06ef36bb 100644 --- a/app/models/supplier.rb +++ b/app/models/supplier.rb @@ -81,7 +81,7 @@ class Supplier < ApplicationRecord all_order_numbers = [] updated_article_pairs, outlisted_articles, new_articles = [], [], [] custom_codes_path = File.join(Rails.root, "config", "custom_codes.yml") - opts = options.except(:convert_units, :outlist_absent) + opts = options.except(:convert_units, :outlist_absent, :update_category) custom_codes_file_path = custom_codes_path if File.exist?(custom_codes_path) FoodsoftArticleImport.parse(file, custom_file_path: custom_codes_file_path, type: type, **opts) do |new_attrs, status, line| article = articles.undeleted.where(order_number: new_attrs[:order_number]).first