summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_pkg.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-12-05 14:24:01 -0800
committerJeremy Davis <jeremyd@freeside.biz>2014-12-09 13:51:16 -0500
commit6199f898a744f2cc2f9f03450d49286866a3f4d0 (patch)
treec5956aba2e89a768f0f7bd0031518c982628d070 /httemplate/edit/part_pkg.cgi
parentfa868107440f645205e7943fd370fb48e677f091 (diff)
disable agent types, RT#31446
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-xhttemplate/edit/part_pkg.cgi3
1 files changed, 1 insertions, 2 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index dca5b3943..cc9ab1001 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -607,8 +607,7 @@ my $new_callback = sub {
my $conf = new FS::Conf;
if ( $conf->exists('agent_defaultpkg') ) {
- #my @all_agent_types = map {$_->typenum} qsearch('agent_type',{});
- @agent_type = map {$_->typenum} qsearch('agent_type',{});
+ @agent_type = map {$_->typenum} qsearch('agent_type', { 'disabled'=>'' });
}
$options{'suspend_bill'}=1 if $conf->exists('part_pkg-default_suspend_bill');