projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b9a3ff
)
SL::PrefixedNumber::set_to_max: mit undefinierten Werten klarkommen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 11 Jul 2013 07:20:09 +0000
(09:20 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 11 Jul 2013 07:29:56 +0000
(09:29 +0200)
SL/PrefixedNumber.pm
patch
|
blob
|
history
diff --git
a/SL/PrefixedNumber.pm
b/SL/PrefixedNumber.pm
index
849421f
..
b3f6098
100644
(file)
--- a/
SL/PrefixedNumber.pm
+++ b/
SL/PrefixedNumber.pm
@@
-64,7
+64,7
@@
sub set_to {
sub set_to_max {
my ($self, @numbers) = @_;
- return $self->set_to(max map { SL::PrefixedNumber->new(number => $_)->_state->{ref_number} } @numbers);
+ return $self->set_to(max map { SL::PrefixedNumber->new(number => $_
// 0
)->_state->{ref_number} } @numbers);
}
1;