[freeside-commits] freeside/httemplate/view/cust_main locations.html, 1.1, 1.2
Mark Wells
mark at wavetail.420.am
Tue Dec 14 00:21:19 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv1124/httemplate/view/cust_main
Modified Files:
locations.html
Log Message:
fix location display boundary case
Index: locations.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/locations.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- locations.html 14 Dec 2010 07:29:12 -0000 1.1
+++ locations.html 14 Dec 2010 08:21:17 -0000 1.2
@@ -29,7 +29,7 @@
% 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>
@@ -50,7 +50,7 @@
});
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 ) {
More information about the freeside-commits
mailing list