diff options
-rw-r--r-- | httemplate/elements/tr-select-cust_location.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html index a9c9382f4..1399240d9 100644 --- a/httemplate/elements/tr-select-cust_location.html +++ b/httemplate/elements/tr-select-cust_location.html @@ -305,7 +305,7 @@ push @cust_location, $cust_location @cust_location = sort $location_sort grep !$_->disabled, @cust_location; -$cust_location = $cust_location[0]; +$cust_location = $cust_location[0] if ( $prospect_main || $opt{'disable_empty'} ) && !$opt{'is_optional'} && @cust_location; |