diff --git a/lib/Git/IssueManager/Issue.pm b/lib/Git/IssueManager/Issue.pm index 06845db..9cd0430 100644 --- a/lib/Git/IssueManager/Issue.pm +++ b/lib/Git/IssueManager/Issue.pm @@ -267,7 +267,7 @@ The estimated time for solving this issue in B Default value is B<0>, meaning no estimate set. =cut -has 'estimated_time' (is => 'rw', isa => 'Num', default => 0, trigger => sub { +has 'estimated_time' => (is => 'rw', isa => 'Num', default => 0, trigger => sub { my ($self, $new, $old) = @_; die("unknown value (" . $new . ")") unless $new > 0; @@ -280,7 +280,7 @@ The current time in B already spent on this issue The default value is B<0>. =cut -has 'working_time' => (is => 'rw', isa=>'Num', default => 0, rigger => sub { +has 'working_time' => (is => 'rw', isa=>'Num', default => 0, trigger => sub { my ($self, $new, $old) = @_; die("unknown value (" . $new . ")") unless $new > 0;