summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2002-04-22 21:23:16 +0000
committerivan <ivan>2002-04-22 21:23:16 +0000
commit280ec2e44b48809e0e0a472b31cfa49adce52d5c (patch)
tree2596a4002c67a03c77de4f57eab53deac533f81c /FS
parent672600ec20269dad5ec798b4a62711bfb29e49c0 (diff)
fix bug checking agents allowed to purchase packages (moved from signups server)
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_pkg.pm4
1 files changed, 2 insertions, 2 deletions
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