projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 1960 - Datenverlust beim CSV-Warenimport bei Preisen
[kivitendo-erp.git]
/
SL
/
Controller
/
CsvImport
/
Part.pm
diff --git
a/SL/Controller/CsvImport/Part.pm
b/SL/Controller/CsvImport/Part.pm
index
387bdb5
..
d707aaa
100644
(file)
--- a/
SL/Controller/CsvImport/Part.pm
+++ b/
SL/Controller/CsvImport/Part.pm
@@
-198,7
+198,7
@@
sub check_existing {
if ($self->settings->{article_number_policy} eq 'update_prices') {
if ($entry->{part}) {
if ($self->settings->{article_number_policy} eq 'update_prices') {
if ($entry->{part}) {
- map { $entry->{part}->$_( $object->$_ )
} qw(sellprice listprice lastcost);
+ map { $entry->{part}->$_( $object->$_ )
if defined $object->$_ } qw(sellprice listprice lastcost);
# merge prices
my %prices_by_pricegroup_id = map { $_->pricegroup->id => $_ } $entry->{part}->prices, $object->prices;
# merge prices
my %prices_by_pricegroup_id = map { $_->pricegroup->id => $_ } $entry->{part}->prices, $object->prices;