FIX: fixed attribute trigger

This commit is contained in:
Dominik Meyer 2018-07-04 16:16:35 +02:00
parent a25e9b2c1e
commit b6f404f4df
No known key found for this signature in database
GPG Key ID: B4C312B600606B64

View File

@ -270,7 +270,7 @@ Default value is B<0>, meaning no estimate set.
has 'estimated_time' => (is => 'rw', isa => 'Num', default => 0, trigger => sub {
my ($self, $new, $old) = @_;
die("unknown value (" . $new . ")") unless $new > 0;
die("unknown value (" . $new . ")") unless $new >=0 ;
});
=attr working_time
@ -283,7 +283,7 @@ The default value is B<0>.
has 'working_time' => (is => 'rw', isa=>'Num', default => 0, trigger => sub {
my ($self, $new, $old) = @_;
die("unknown value (" . $new . ")") unless $new > 0;
die("unknown value (" . $new . ")") unless $new >= 0;
});