[Rt-commit] rtir branch, rt-3.9, updated. 74beebf75742691aed9364ad7e1adeb77bde7d4c

? sunnavy sunnavy at bestpractical.com
Thu Oct 14 01:10:59 EDT 2010


The branch, rt-3.9 has been updated
       via  74beebf75742691aed9364ad7e1adeb77bde7d4c (commit)
      from  a719650fa1af9b1909fb379916d76461ae30e10c (commit)

Summary of changes:
 lib/RT/IR.pm |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)

- Log -----------------------------------------------------------------
commit 74beebf75742691aed9364ad7e1adeb77bde7d4c
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Oct 14 13:10:43 2010 +0800

    no need to hack SetStatus any more as we have improved lifecycle

diff --git a/lib/RT/IR.pm b/lib/RT/IR.pm
index 8b7776a..97c9528 100644
--- a/lib/RT/IR.pm
+++ b/lib/RT/IR.pm
@@ -371,30 +371,6 @@ if ( RT::IR->HasConstituency ) {
 }
 
 require RT::Ticket;
-{
-    no warnings 'redefine';
-    my $set_status = RT::Ticket->can('SetStatus');
-    *RT::Ticket::SetStatus = sub {
-        my $self = shift;
-        my %args;
-        if ( @_ == 1 ) {
-
-            # it's called like $ticket->SetStatus('new')
-            $args{Status} = $_[0];
-        }
-        else {
-            %args = @_;
-        }
-
-        my $old  = $self->__Value('Status');
-        # if old status is open, we don't want to SetStarted
-        if ( $old eq 'open' ) {
-            $args{SetStarted} = 0;
-        }
-
-        $self->$set_status(%args);
-    };
-}
 
 require RT::Action::AutoOpen;
 {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list