From 1427d96a209258589277eb22433e9b5c37289fcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 11 Apr 2017 22:03:41 +0200 Subject: [PATCH] CSV-Import: CustomerVender benutzerdefinierte Variable aktualisieren handle_cvars erst aufrufen, wenn das zu speichernde Objekt bekannt ist. Das betrifft den Fall, wenn vorhandene Objekte aktualisiert werden sollen. behebt #237 (redmine) --- SL/Controller/CsvImport/CustomerVendor.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Controller/CsvImport/CustomerVendor.pm b/SL/Controller/CsvImport/CustomerVendor.pm index f3b8d0443..8fc893d11 100644 --- a/SL/Controller/CsvImport/CustomerVendor.pm +++ b/SL/Controller/CsvImport/CustomerVendor.pm @@ -82,7 +82,6 @@ sub check_objects { $self->check_taxzone($entry, take_default => 1); $self->check_currency($entry, take_default => 1); $self->check_salesman($entry); - $self->handle_cvars($entry); next if @{ $entry->{errors} }; @@ -110,6 +109,9 @@ sub check_objects { } else { $object->$numbercolumn('####'); } + + $self->handle_cvars($entry); + } continue { $i++; } -- 2.20.1