[Rt-commit] r10321 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Sun Jan 13 17:53:29 EST 2008
Author: ruz
Date: Sun Jan 13 17:53:26 2008
New Revision: 10321
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
Log:
r10145 at cubic-pc: cubic | 2008-01-09 15:15:05 +0300
* minor
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Transaction_Overlay.pm Sun Jan 13 17:53:26 2008
@@ -238,7 +238,7 @@
=head2 Message
-Returns the L<RT::Attachments> Object which contains the "top-level" object
+Returns the L<RT::Attachments> object which contains the "top-level" object
attachment for this transaction.
=cut
@@ -248,17 +248,16 @@
# XXX: Where is ACL check?
- if ( !defined( $self->{'message'} ) ) {
+ unless ( defined $self->{'message'} ) {
- $self->{'message'} = new RT::Attachments( $self->CurrentUser );
+ $self->{'message'} = RT::Attachments->( $self->CurrentUser );
$self->{'message'}->Limit(
FIELD => 'TransactionId',
VALUE => $self->Id
);
-
$self->{'message'}->ChildrenOf(0);
}
- return ( $self->{'message'} );
+ return $self->{'message'};
}
# }}}
@@ -440,7 +439,7 @@
=head2 Attachments
- Returns all the RT::Attachment objects which are attached
+Returns all the RT::Attachment objects which are attached
to this transaction. Takes an optional parameter, which is
a ContentType that Attachments should be restricted to.
More information about the Rt-commit
mailing list