From 418dcb402780f09e48127498cebe011ffdbb9af1 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 24 Oct 2009 02:04:45 +0000 Subject: remove an inadvertant debugging call left in, allow an agentnum to be specfied for non-logged in situations, RT#6166 --- FS/FS/ClientAPI/MyAccount.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'FS') diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index a651a8322..1e029ed25 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -74,8 +74,10 @@ sub skin_info { $agentnum = $sth->fetchrow_arrayref->[0] or die "no agentnum for custnum $custnum"; + #} elsif ( $context eq 'agent' ) { + } elsif ( $p->{'agentnum'} =~ /^(\d+)$/ ) { + $agentnum = $1; } - # elsif ( $context eq 'agent' ) { my $conf = new FS::Conf; @@ -94,6 +96,7 @@ sub skin_info { if $DEBUG > 1; $skin_info_cache_agent = { + 'agentnum' => $agentnum, ( map { $_ => scalar( $conf->config($_, $agentnum) ) } qw( company_name ) ), ( map { $_ => scalar( $conf->config("selfservice-$_", $agentnum ) ) } @@ -106,9 +109,6 @@ sub skin_info { } - use Data::Dumper; - warn Dumper($skin_info_cache_agent); - #{ %$skin_info_cache_agent }; $skin_info_cache_agent; -- cgit v1.2.1