diff options
author | ivan <ivan> | 2009-10-24 02:04:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-24 02:04:41 +0000 |
commit | ca16e6099d6b0b979badb1bca5d2b7413aa70206 (patch) | |
tree | 3f5fdc5a5acc779d0eaedbe1458b75846ff28320 /FS | |
parent | 5fe84df65a55868bbc730bbcd8a8dbb4de7a7593 (diff) |
remove an inadvertant debugging call left in, allow an agentnum to be specfied for non-logged in situations, RT#6166
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 8 |
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; |