summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/first_pkg
diff options
context:
space:
mode:
authorivan <ivan>2010-10-10 00:26:24 +0000
committerivan <ivan>2010-10-10 00:26:24 +0000
commitb76d8cd6704292a90d71bfea31859ed22e2fa23f (patch)
tree6e68bd327d7205b1c394b041eb2d88d0606f8740 /httemplate/edit/cust_main/first_pkg
parent6889413a55f87e4b7f6b6637773f87a0de52b3b4 (diff)
add lock_agentnum and lock_pkgpart parameters to new customer page, RT#9782
Diffstat (limited to 'httemplate/edit/cust_main/first_pkg')
-rw-r--r--httemplate/edit/cust_main/first_pkg/select-part_pkg.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/edit/cust_main/first_pkg/select-part_pkg.html b/httemplate/edit/cust_main/first_pkg/select-part_pkg.html
index 871e1cdee..20f0e1982 100644
--- a/httemplate/edit/cust_main/first_pkg/select-part_pkg.html
+++ b/httemplate/edit/cust_main/first_pkg/select-part_pkg.html
@@ -147,7 +147,9 @@ foreach my $part_pkg ( @part_pkg ) {
$layermap{$pkgpart_svcpart} = $svcdb{$pkgpart};
}
-my @options = ( '', map $pkgpart_svcpart{ $_->pkgpart }, @part_pkg );
+my @options = ();
+push @options, '' unless $opt{'disable_empty'};
+push @options, map $pkgpart_svcpart{ $_->pkgpart }, @part_pkg;
my %labels = ( '' => ( $opt{'empty_label'} || '(none)' ),
map { $pkgpart_svcpart{ $_->pkgpart } => $_->pkg_comment }
@part_pkg