[Rt-commit] r7698 - in rtir/branches/2.3-EXPERIMENTAL: .

jesse at bestpractical.com jesse at bestpractical.com
Wed Apr 25 12:52:44 EDT 2007


Author: jesse
Date: Wed Apr 25 12:52:42 2007
New Revision: 7698

Modified:
   rtir/branches/2.3-EXPERIMENTAL/   (props changed)
   rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm

Log:
 r56074 at pinglin:  jesse | 2007-04-25 12:45:57 -0400
  * Add better caching to the constituency lookups when loading a ticket's queueobj


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	Wed Apr 25 12:52:42 2007
@@ -404,7 +404,7 @@
             unless ($const) {
                 my $ticket = RT::Ticket->new($RT::SystemUser);
                 $ticket->Load($id);
-                $const = $ticket->FirstCustomFieldValue('_RTIR_Constituency');
+                $const = $RT::IR::ConstituencyCache->{$ticket->id}  = $ticket->FirstCustomFieldValue('_RTIR_Constituency') || '_none';
             }
             if ($const) {
                 my $new_queue = RT::Queue->new($RT::SystemUser);


More information about the Rt-commit mailing list