From 8b7b7701eb646c89dae0e8aad8cfc2c5276f8ad6 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Tue, 21 Aug 2012 09:55:49 +0200 Subject: [PATCH] =?utf8?q?CSV-Import=20f=C3=BCr=20benutzerdefinierte=20Var?= =?utf8?q?iablen=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sollte nun mit allen CSV-Imports funktionieren. Der alte Fix hat nur mit Customer/Vendor funktioniert. --- SL/Controller/CsvImport/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index 31d1d9ece..5aa6066b0 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -185,7 +185,7 @@ sub handle_cvars { my $value = $entry->{raw_data}->{ "cvar_" . $config->name }; my $column = $type_to_column{ $config->type } || die "Program logic error: unknown custom variable storage type"; - push @cvars, SL::DB::CustomVariable->new(config_id => $config->id, $column => $value); + push @cvars, SL::DB::CustomVariable->new(config_id => $config->id, $column => $value, sub_module => ''); } $entry->{object}->custom_variables(\@cvars); -- 2.20.1