[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.4-24-ge5cef16

Shawn Moore sartak at bestpractical.com
Wed Sep 29 20:27:44 EDT 2010


The branch, 3.9-trunk has been updated
       via  e5cef164ede9e82d6bf3cf8a0a26d2658d388893 (commit)
      from  1b803767a6b33966e3fb655b1a08d8e4d94574ef (commit)

Summary of changes:
 lib/RT/Interface/Web.pm |    2 ++
 share/html/autohandler  |    2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit e5cef164ede9e82d6bf3cf8a0a26d2658d388893
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Sep 29 20:28:15 2010 -0400

    Move the Footer into HandleRequest so that it keeps %session
    
        We have a local %session in HandleRequest so it's cleared by the
        time that function returns and autohandler continues on to the
        Footer. This is important for callbacks and other code that needs to
        peer into $session{CurrentUser} at the end of a request

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index f95b9c0..702d237 100755
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -219,6 +219,8 @@ sub HandleRequest {
     ShowRequestedPage($ARGS);
     LogRecordedSQLStatements();
 
+    $HTML::Mason::Commands::m->comp( '/Elements/Footer', %$ARGS );
+
     # Process per-page final cleanup callbacks
     $HTML::Mason::Commands::m->callback( %$ARGS, CallbackName => 'Final', CallbackPage => '/autohandler' );
 }
diff --git a/share/html/autohandler b/share/html/autohandler
index c138c79..8762852 100755
--- a/share/html/autohandler
+++ b/share/html/autohandler
@@ -51,8 +51,6 @@ use RT::Util;
 $m->callback( ARGSRef => \%ARGS, CallbackName => 'Init', CallbackPage => '/autohandler' );
 
 RT::Interface::Web::HandleRequest(\%ARGS);
-
-$m->comp( '/Elements/Footer', %ARGS );
 </%INIT>
 <%ARGS>
 $user => undef

-----------------------------------------------------------------------


More information about the Rt-commit mailing list