From 1181d2b6f3805a2a48a34a72b14440e30cb7c6c2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 10 Feb 2017 16:11:54 +0100 Subject: [PATCH] CSV-Artikel-Import-Controller: Warnung wegen Vergleich mit undefiniert vermeiden Trat bei Tests auf (genauer: t/controllers/csvimport/parts.t). --- SL/Controller/CsvImport/Part.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/CsvImport/Part.pm b/SL/Controller/CsvImport/Part.pm index 069dad2bd..d337550b0 100644 --- a/SL/Controller/CsvImport/Part.pm +++ b/SL/Controller/CsvImport/Part.pm @@ -622,7 +622,7 @@ sub handle_pricegroups { foreach my $pricegroup (@{ $self->all_pricegroups }) { $idx++; my $sellprice = $entry->{raw_data}->{"pricegroup_${idx}"}; - next if $sellprice eq ''; + next if ($sellprice // '') eq ''; push @prices, SL::DB::Price->new(pricegroup_id => $pricegroup->id, price => $::form->parse_amount(\%::myconfig, $sellprice)); -- 2.20.1