summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm8
1 files changed, 4 insertions, 4 deletions
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;