summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-05-07 16:36:00 -0700
committerIvan Kohler <ivan@freeside.biz>2014-05-07 16:36:00 -0700
commit6eefe7c0eb2fa41651fcc9f3d9c8259ceb77e13a (patch)
tree2f05a53d1f9ed8a68a03f0d6fdf403eb7e5bee7c /FS
parent7ad62cea1758b8f2e4f0e0d4d8bab36a864b5938 (diff)
fix agent type selection, RT#28804
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_pkg.pm17
1 files changed, 0 insertions, 17 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm
index deba655c5..b62b52d4b 100644
--- a/FS/FS/part_pkg.pm
+++ b/FS/FS/part_pkg.pm
@@ -218,23 +218,6 @@ sub insert {
}
}
- my $conf = new FS::Conf;
- if ( $conf->exists('agent_defaultpkg') ) {
- warn " agent_defaultpkg set; allowing all agents to purchase package"
- if $DEBUG;
- foreach my $agent_type ( qsearch('agent_type', {} ) ) {
- my $type_pkgs = new FS::type_pkgs({
- 'typenum' => $agent_type->typenum,
- 'pkgpart' => $self->pkgpart,
- });
- my $error = $type_pkgs->insert;
- if ( $error ) {
- $dbh->rollback if $oldAutoCommit;
- return $error;
- }
- }
- }
-
warn " inserting part_pkg_taxoverride records" if $DEBUG;
my %overrides = %{ $options{'tax_overrides'} || {} };
foreach my $usage_class ( keys %overrides ) {