X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Ftr-select-cust_location.html;h=1399240d9d0c907bbdb28b16295d4477e5b987a2;hb=5f52339b62764ad59fa3e010fad8979dfc3d66ce;hp=a9c9382f4d10422e6c5600b1d6a39ee16f1486aa;hpb=16b02c599a64ecc0414343b4fbc0fe5b02543279;p=freeside.git 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;