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


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to