summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authormark <mark>2010-12-14 08:21:17 +0000
committermark <mark>2010-12-14 08:21:17 +0000
commit88be1de5a77b567c1f610bc510ca386738538488 (patch)
tree775a26f48fa200c31b1a1d5b3dff6fc43b0e2721 /httemplate
parentf424f11eb366fe64f5f7bb42b21745e22537cab1 (diff)
fix location display boundary case
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/view/cust_main/locations.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/locations.html b/httemplate/view/cust_main/locations.html
index 319a92747..ea6216ea9 100755
--- a/httemplate/view/cust_main/locations.html
+++ b/httemplate/view/cust_main/locations.html
@@ -29,7 +29,7 @@ Default service location:
% if ( $locationnum and !$loc->disabled ) {
<% edit_location_link($locationnum) %>
% }
-% if ( !$loc->disabled and !$active{$locationnum} ) {
+% if ( $locationnum and !$loc->disabled and !$active{$locationnum} ) {
&nbsp;<% disable_location_link($locationnum) %>
% }
</SPAN></TH></TR>
@@ -50,7 +50,7 @@ my %locations = map { $_->locationnum => $_ } qsearch({
});
my @sections = keys %locations;
$locations{''} = $cust_main;
-my %packages_in = map { $_ => [] } @sections;
+my %packages_in = map { $_ => [] } ('', @sections);
my %active = (); # groups with non-canceled packages
foreach my $cust_pkg ( @$all_packages ) {