diff options
Diffstat (limited to 'rt/lib/RT/Approval/Rule/Passed.pm')
-rw-r--r-- | rt/lib/RT/Approval/Rule/Passed.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rt/lib/RT/Approval/Rule/Passed.pm b/rt/lib/RT/Approval/Rule/Passed.pm index e0560bac1..f364bc926 100644 --- a/rt/lib/RT/Approval/Rule/Passed.pm +++ b/rt/lib/RT/Approval/Rule/Passed.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC # <sales@bestpractical.com> # # (Except where explicitly superseded by other copyright notices) @@ -80,7 +80,10 @@ sub Commit { } } - $obj->SetStatus( Status => 'open', Force => 1 ); + $obj->SetStatus( + Status => $obj->QueueObj->Lifecycle->DefaultStatus('approved') || 'open', + Force => 1, + ); } my $passed = !$top->HasUnresolvedDependencies( Type => 'approval' ); |