]> git.uio.no Git - usit-rt.git/blobdiff - lib/RT/Approval/Rule/Passed.pm
Upgrade to 4.2.8
[usit-rt.git] / lib / RT / Approval / Rule / Passed.pm
index acc49161f0c50cb027c4666c49a1d7d2ccfe640b..eb53de46cdd9d048550dfa0e53917a2a480d3c7b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
 #                                          <sales@bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
@@ -96,7 +96,7 @@ sub Commit {
     $top->Correspond( MIMEObj => $template->MIMEObj );
 
     if ($passed) {
-        my $new_status = $top->QueueObj->Lifecycle->DefaultStatus('approved') || 'open';
+        my $new_status = $top->LifecycleObj->DefaultStatus('approved') || 'open';
         if ( $new_status ne $top->Status ) {
             $top->SetStatus( $new_status );
         }