From: ivan Date: Mon, 22 Apr 2002 21:23:16 +0000 (+0000) Subject: fix bug checking agents allowed to purchase packages (moved from signups server) X-Git-Tag: freeside_1_4_0_pre12~29 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=280ec2e44b48809e0e0a472b31cfa49adce52d5c fix bug checking agents allowed to purchase packages (moved from signups server) --- diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index b7633c196..08c04a06b 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -145,7 +145,7 @@ sub insert { my $agent = qsearchs( 'agent', { 'agentnum' => $cust_main->agentnum } ); my $pkgpart_href = $agent->pkgpart_hashref; return "agent ". $agent->agentnum. " can't purchase pkgpart ". $self->pkgpart - unless $pkgpart_href->{ $self->{pkgpart} }; + unless $pkgpart_href->{ $self->pkgpart }; $self->SUPER::insert; @@ -701,7 +701,7 @@ sub order { =head1 VERSION -$Id: cust_pkg.pm,v 1.19 2002-04-22 20:47:21 ivan Exp $ +$Id: cust_pkg.pm,v 1.20 2002-04-22 21:23:16 ivan Exp $ =head1 BUGS