From 215f9f2c91a52fbc8abe3d5215748bca5a8ca071 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 2 Jul 2013 11:41:43 +0200 Subject: [PATCH] TransNumberGenerator: mit leerer Sequenzstartnummer klarkommen --- SL/DB/Helper/TransNumberGenerator.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Helper/TransNumberGenerator.pm b/SL/DB/Helper/TransNumberGenerator.pm index aa0265411..a6f4e2e85 100644 --- a/SL/DB/Helper/TransNumberGenerator.pm +++ b/SL/DB/Helper/TransNumberGenerator.pm @@ -57,7 +57,7 @@ sub get_next_trans_number { require SL::DB::Default; my $defaults = SL::DB::Default->get; $number_range_column = 'articlenumber' if $number_range_column eq 'assemblynumber' and length($defaults->$number_range_column) < 1; - my $sequence = SL::PrefixedNumber->new(number => $defaults->$number_range_column); + my $sequence = SL::PrefixedNumber->new(number => ($defaults->$number_range_column || 1)); $sequence->set_to_max(@numbers) if !$fill_holes_in_range; -- 2.20.1