fix bug from "View customers of all agents" addition
authorivan <ivan>
Thu, 17 Jun 2010 20:31:13 +0000 (20:31 +0000)
committerivan <ivan>
Thu, 17 Jun 2010 20:31:13 +0000 (20:31 +0000)
httemplate/view/cust_main/misc.html

index 8bcab0d..d383e4a 100644 (file)
@@ -116,6 +116,8 @@ my( $cust_main ) = @_;
 my $conf = new FS::Conf;
 my $date_format = ($conf->config('date_format') || "%m/%d/%Y");
 
-my @agentnums = $FS::CurrentUser::CurrentUser->agentnums;
+my $curuser = $FS::CurrentUser::CurrentUser;
+
+my @agentnums = $curuser->agentnums;
 
 </%init>