- <<%$th%> ALIGN="right">Unit type and #<%$th%>>
+ <<%$th%> ALIGN="right">Unit type and #<%$th%>>
% my $location_type = scalar($cgi->param('location_type'))
@@ -98,7 +98,7 @@ Example:
'field' => 'location_type',
'id' => 'location_type',
'disabled' => $disabled,
- 'style' => \@style,
+ #'style' => \@style,
'options' => [ keys %location_types ],
'labels' => \%location_types,
'curr_value' => $location_type,
@@ -136,15 +136,9 @@ Example:
<% $style %>
>
-% if ( $object->get($pre.'address2') ) {
-
-% #XXX try to parse first
-% if ( 0 ) {
-% } else { #XXX i don't work so well when the dropdown is changed :/ i probably need to be triggered by "default service address"
- Can't parse unit type and number from <% $object->get($pre.'address2') |h %>
-% }
-
-% }
+% #XXX i don't work so well when the dropdown is changed :/ i probably need to be triggered by "default service address"
+% $alt_err =~ s/(ship_)?address2/''.encode_entities($object->get($1.'address2')).'<\/B>'/e;
+ <% $alt_err %>