From: Ivan Kohler Date: Mon, 15 May 2017 23:18:19 +0000 (-0700) Subject: no need for a one-choice "Add new location" location dropdown on prospect add, RT... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=1b3abef9815111c52b1370ba5168a592ae9cfcb0 no need for a one-choice "Add new location" location dropdown on prospect add, RT#76000 --- diff --git a/httemplate/elements/select-cust_location.html b/httemplate/elements/select-cust_location.html index 29563c50e..24df352ae 100644 --- a/httemplate/elements/select-cust_location.html +++ b/httemplate/elements/select-cust_location.html @@ -1,3 +1,13 @@ +% my @pre_options = $opt{pre_options} ? @{ $opt{pre_options} } : (); +% if ( ! @pre_options +% && ! $cust_main +% && ! $opt{is_optional} +% && ! @{ $opt{cust_location} } +% && $addnew +% ) { + +% } else { + +% } <%init> my $conf = new FS::Conf;