[freeside-commits] freeside/httemplate/elements select-county.html, 1.4, 1.5
Ivan,,,
ivan at wavetail.420.am
Thu Oct 22 01:59:00 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv5683
Modified Files:
select-county.html
Log Message:
fix all location selects hidden on new customer add, fallout from city tax stuff, yay for this not being on _1_9_BRANCH, RT#5852
Index: select-county.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-county.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- select-county.html 12 Oct 2009 01:45:12 -0000 1.4
+++ select-county.html 22 Oct 2009 08:58:58 -0000 1.5
@@ -136,7 +136,7 @@
( $opt{'disable_cityupdate'} ? '' : $pre.'county_changed(this); ' ).
$opt{'onchange'};
-$opt{'style'} ||= [];
+my $county_style = $opt{'style'} ? [ @{ $opt{'style'} } ] : [];
my @counties = ();
if ( $countyflag ) {
@@ -144,14 +144,14 @@
@counties = map { length($_) ? $_ : $opt{'empty_data_value'} }
counties( $opt{'state'}, $opt{'country'} );
- push @{ $opt{'style'} }, 'display:none'
+ push @$county_style, 'display:none'
unless scalar(@counties) > 1;
}
my $style =
- scalar(@{$opt{style}})
- ? 'STYLE="'. join(';', @{$opt{style}}). '"'
+ scalar(@$county_style)
+ ? 'STYLE="'. join(';', @$county_style). '"'
: '';
</%init>
More information about the freeside-commits
mailing list