From 6f647334b7e7ed39b5a5d5564aaa5ad7e4970fe6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 8 Nov 2012 15:31:23 +0100 Subject: [PATCH] =?utf8?q?Warnung=20=C3=BCber=20nicht=20eindeutige=20Artik?= =?utf8?q?elnummer=20bei=20leerem=20Artikelnummernfeld=20nicht=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ic.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index b86623b51..9ee6e604b 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1586,7 +1586,7 @@ sub form_header { IC->retrieve_buchungsgruppen(\%myconfig, $form); @{ $form->{BUCHUNGSGRUPPEN} } = grep { $_->{id} eq $form->{buchungsgruppen_id} || ($form->{id} && $form->{orphaned}) || !$form->{id} } @{ $form->{BUCHUNGSGRUPPEN} }; - if (!SL::TransNumber->new(number => $form->{partnumber}, type => $form->{item}, id => $form->{id})->is_unique) { + if (($form->{partnumber} ne '') && !SL::TransNumber->new(number => $form->{partnumber}, type => $form->{item}, id => $form->{id})->is_unique) { flash('info', $::locale->text('This partnumber is not unique. You should change it.')); } -- 2.20.1