FIX: fixed attribute trigger
This commit is contained in:
parent
a25e9b2c1e
commit
b6f404f4df
@ -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;
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user