From 846c2f9e3408dd50da26fd888e983ce3ac056f43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 14 Sep 2012 13:13:37 +0200 Subject: [PATCH] =?utf8?q?Warnung=20unterdr=C3=BCcken?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Part.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 952bce278..1ef2c1b68 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -55,7 +55,7 @@ __PACKAGE__->before_save('_before_save_set_partnumber'); sub _before_save_set_partnumber { my ($self) = @_; - $self->create_trans_number if $self->partnumber eq ''; + $self->create_trans_number if !$self->partnumber; return 1; } -- 2.20.1