From 9b4e6a46a2eeb7508798ef8e8e336f673e484a29 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 19 Jan 2016 15:12:03 +0100 Subject: [PATCH] =?utf8?q?Warenauswahl:=20EAN=20in=20=C2=BBAndere=20Treffe?= =?utf8?q?r=C2=AB=20nur=20ausweisen,=20wenn=20nach=20Artikelnummer=20gesuc?= =?utf8?q?ht=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IR.pm | 2 +- SL/IS.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/IR.pm b/SL/IR.pm index 55987afcf..e2f65753c 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -1344,7 +1344,7 @@ sub retrieve_item { push @{ $ref->{matches} ||= [] }, $::locale->text('Model') . ': ' . join ', ', map { $_->{model} } @{ $mm_by_id{$ref->{id}} }; } - if ($ref->{ean} eq $::form->{"partnumber_$i"}) { + if (($::form->{"partnumber_$i"} ne '') && ($ref->{ean} eq $::form->{"partnumber_$i"})) { push @{ $ref->{matches} ||= [] }, $::locale->text('EAN') . ': ' . $ref->{ean}; } diff --git a/SL/IS.pm b/SL/IS.pm index 49d3cca38..7705a11e6 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -2310,7 +2310,7 @@ sub retrieve_item { push @{ $ref->{matches} ||= [] }, $::locale->text('Model') . ': ' . join ', ', map { $_->{model} } @{ $mm_by_id{$ref->{id}} }; } - if ($ref->{ean} eq $::form->{"partnumber_$i"}) { + if (($::form->{"partnumber_$i"} ne '') && ($ref->{ean} eq $::form->{"partnumber_$i"})) { push @{ $ref->{matches} ||= [] }, $::locale->text('EAN') . ': ' . $ref->{ean}; } -- 2.20.1