projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f424f11
)
fix location display boundary case
author
mark
<mark>
Tue, 14 Dec 2010 08:21:17 +0000
(08:21 +0000)
committer
mark
<mark>
Tue, 14 Dec 2010 08:21:17 +0000
(08:21 +0000)
httemplate/view/cust_main/locations.html
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_main/locations.html
b/httemplate/view/cust_main/locations.html
index
319a927
..
ea6216e
100755
(executable)
--- 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 ( $locationnum and !$loc->disabled ) {
<% edit_location_link($locationnum) %>
% }
-% if ( !$loc->disabled and !$active{$locationnum} ) {
+% if (
$locationnum and
!$loc->disabled and !$active{$locationnum} ) {
<% disable_location_link($locationnum) %>
% }
</SPAN></TH></TR>
<% disable_location_link($locationnum) %>
% }
</SPAN></TH></TR>
@@
-50,7
+50,7
@@
my %locations = map { $_->locationnum => $_ } qsearch({
});
my @sections = keys %locations;
$locations{''} = $cust_main;
});
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 ) {
my %active = (); # groups with non-canceled packages
foreach my $cust_pkg ( @$all_packages ) {