[Rt-commit] r15858 - in rt/branches/3.999-DANGEROUS: lib/RT/Model

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Sep 8 11:32:18 EDT 2008


Author: sunnavy
Date: Mon Sep  8 11:32:16 2008
New Revision: 15858

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm

Log:
 r16543 at sunnavys-mb:  sunnavy | 2008-09-08 23:28:58 +0800
 ticket_obj should return object


Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm	Mon Sep  8 11:32:16 2008
@@ -1088,10 +1088,7 @@
     # XXX: too early for deprecation, a lot of usage
     #require Carp; Carp::confess("use object method instead and check type");
     my $self = shift;
-    unless ( $self->object_type eq 'RT::Model::Ticket' ) {
-        require Carp; Carp::confess("ticket_obj method is called on txn that belongs not to ticket");
-    }
-    return $self->object_id;
+    return $self->object;
 }
 
 sub old_value {


More information about the Rt-commit mailing list