[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.97, 1.98

Ivan,,, ivan at wavetail.420.am
Fri Oct 23 19:04:43 PDT 2009


Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv31166/FS/FS/ClientAPI

Modified Files:
	MyAccount.pm 
Log Message:
remove an inadvertant debugging call left in, allow an agentnum to be specfied for non-logged in situations, RT#6166

Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- MyAccount.pm	24 Oct 2009 00:34:34 -0000	1.97
+++ MyAccount.pm	24 Oct 2009 02:04:41 -0000	1.98
@@ -74,8 +74,10 @@
     $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 @@
       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 @@
 
   }
 
-  use Data::Dumper;
-  warn Dumper($skin_info_cache_agent);
-
   #{ %$skin_info_cache_agent };
   $skin_info_cache_agent;
 



More information about the freeside-commits mailing list