[Rt-commit] r9334 - rtir/branches/2.3-EXPERIMENTAL/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Tue Oct 16 22:30:31 EDT 2007
Author: ruz
Date: Tue Oct 16 22:30:30 2007
New Revision: 9334
Modified:
rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm
Log:
* add 'require XXX' before wrapping or overriding something
in package XXX, just to be sure it's loaded
Modified: rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm (original)
+++ rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm Tue Oct 16 22:30:30 2007
@@ -381,7 +381,8 @@
}
-{
+{
+ require RT::Ticket;
wrap 'RT::Ticket::QueueObj', pre => sub {
my $queue = RT::Queue->new($_[0]->CurrentUser);
$queue->Load($_[0]->__Value('Queue'));
@@ -412,7 +413,8 @@
- {
+ {
+ require RT::Queue;
package RT::Queue;
sub CorrespondAddress { GetQueueAttribute(shift, 'CorrespondAddress') }
More information about the Rt-commit
mailing list