fix per-agent portal branding on logout, RT#32139
authorIvan Kohler <ivan@freeside.biz>
Wed, 19 Nov 2014 05:01:39 +0000 (21:01 -0800)
committerIvan Kohler <ivan@freeside.biz>
Wed, 19 Nov 2014 05:01:39 +0000 (21:01 -0800)
FS/FS/ClientAPI/MyAccount.pm
fs_selfservice/FS-SelfService/cgi/logout.html

index af747eb..7ae7cc3 100644 (file)
@@ -308,11 +308,12 @@ sub login {
 
 sub logout {
   my $p = shift;
+  my $skin_info = skin_info($p);
   if ( $p->{'session_id'} ) {
     _cache->remove($p->{'session_id'});
-    return { %{ skin_info($p) }, 'error' => '' };
+    return { %$skin_info, 'error' => '' };
   } else {
-    return { %{ skin_info($p) }, 'error' => "Can't resume session" }; #better error message
+    return { %$skin_info, 'error' => "Can't resume session" }; #better error message
   }
 }
 
index 834ef13..540b6c9 100644 (file)
@@ -1,6 +1,6 @@
 <HTML>
   <HEAD>
-    <META HTTP-EQUIV="refresh" CONTENT="5;URL=<%= $cgi->url(-absolute => 1) %>">
+    <META HTTP-EQUIV="refresh" CONTENT="5;URL=<%= $cgi->url(-absolute => 1). "?agentnum=$agentnum" %>">
     <TITLE>MyAccount</TITLE>
     <%= $head %>
   </HEAD>