[rt-users] global default auto-refresh patch for 3.8.2

Jo Rhett jrhett at netconsonance.com
Thu Feb 12 14:43:02 EST 2009


This patch is adapted from something Ian posted for 3.6.4 adapted for  
3.8.2.  Jesse, please consider adopting this for the mainline as it is  
a popular question and this patch allows the person to override the  
default.

--- html/autohandler_orig    2009-02-12 11:31:49.000000000 -0800
+++ html/autohandler 2009-02-12 11:42:02.000000000 -0800
@@ -208,6 +208,13 @@
                          if defined $new_user_info->{$attribute};
                  }
                  $session{'CurrentUser'}->Load($user);
+
+                unless( $session{'home_refresh_interval'} ) {
+                    $session{'home_refresh_interval'} =  
$RT::HomeRefreshInterval;
+                }
+                unless( $session{'tickets_refresh_interval'} ) {
+                    $session{'tickets_refresh_interval'} =  
$RT::TicketsRefreshInterval;
+                }
              }
              else {

@@ -273,6 +280,13 @@
              $m->abort;
          }
          $session{'CurrentUser'} = $user_obj;
+        unless( $session{'home_refresh_interval'} ) {
+            $session{'home_refresh_interval'} =  
$RT::HomeRefreshInterval;
+        }
+        unless( $session{'tickets_refresh_interval'} ) {
+            $session{'tickets_refresh_interval'} =  
$RT::TicketsRefreshInterval;
+        }
+
          $RT::Logger->info(
              "Successful login for $user from $ENV{'REMOTE_ADDR'}");
          $m->callback( %ARGS, CallbackName => 'SuccessfulLogin' );




-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090212/d8ea1cdc/attachment.htm>


More information about the rt-users mailing list