summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/first_pkg/select-part_pkg.html
diff options
context:
space:
mode:
authorivan <ivan>2010-10-10 00:26:33 +0000
committerivan <ivan>2010-10-10 00:26:33 +0000
commit2f0ff297f42947c17bff651297bd0295232d03f2 (patch)
tree3187812c9a469bcdab5fd7feea4dd5df20c70208 /httemplate/edit/cust_main/first_pkg/select-part_pkg.html
parent3655e84e27d09f175d992f175d3cfb8a1f2c0c09 (diff)
add lock_agentnum and lock_pkgpart parameters to new customer page, RT#9782
Diffstat (limited to 'httemplate/edit/cust_main/first_pkg/select-part_pkg.html')
-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