[interchange] * Re-connect session variables when doing an su. This bug would result in

Mike Heins interchange-cvs at icdevgroup.org
Wed Jul 31 11:52:55 UTC 2013


commit d497f8bb49854edc1284aa02fd480346ec88327c
Author: Mike Heins <heins at icdevgroup.com>
Date:   Tue Jul 30 16:02:02 2013 -0400

    * Re-connect session variables when doing an su. This bug would result in
      $Scratch and others not being correct for page where su occurs.

 code/UI_Tag/su.coretag |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/code/UI_Tag/su.coretag b/code/UI_Tag/su.coretag
index 05d57d7..ded176b 100644
--- a/code/UI_Tag/su.coretag
+++ b/code/UI_Tag/su.coretag
@@ -168,6 +168,9 @@ sub {
 			$Tag->userdb('load');
 		}
 
+		## Reconnect session variables
+		Vend::Interpolate::init_calc;
+
 		my $dest = $Tag->if_mm('logged_in') ? 'admin user' : 'regular user';
 		logError(
 			"superuser %s switched user to %s %s",



More information about the interchange-cvs mailing list