X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FApproval%2FRule%2FPassed.pm;h=f364bc926af6872d26fe00288b8823fc427f867d;hb=33beebf4cb42eba3e1dd868ad5e0af102de961da;hp=e0560bac1d953de8c59e10222a5de1ed2901e786;hpb=7ac86daf67b0a95153b736d5811f9050363f6553;p=freeside.git 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 # # # (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' );