summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorivan <ivan>2011-03-20 22:33:13 +0000
committerivan <ivan>2011-03-20 22:33:13 +0000
commit16b02c599a64ecc0414343b4fbc0fe5b02543279 (patch)
tree2cabd5d71b4c27ec91d103ed8298938ce8c31380 /httemplate/elements
parent25b48e1acbf6ad7ebd3e85b479ee6cd3a8ccd098 (diff)
qualification address handling changes, RT#7111
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/tr-select-cust_location.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html
index b882c3d46..a9c9382f4 100644
--- a/httemplate/elements/tr-select-cust_location.html
+++ b/httemplate/elements/tr-select-cust_location.html
@@ -305,9 +305,10 @@ push @cust_location, $cust_location
@cust_location = sort $location_sort grep !$_->disabled, @cust_location;
-if ( ( $prospect_main || $opt{'disable_empty'} ) && !$opt{'is_optional'} ) {
- $cust_location = $cust_location[0];
-}
+$cust_location = $cust_location[0];
+ if ( $prospect_main || $opt{'disable_empty'} )
+ && !$opt{'is_optional'}
+ && @cust_location;
my $disabled =
( $locationnum < 0