From 1b3abef9815111c52b1370ba5168a592ae9cfcb0 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 15 May 2017 16:18:19 -0700 Subject: [PATCH] no need for a one-choice "Add new location" location dropdown on prospect add, RT#76000 --- httemplate/elements/select-cust_location.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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; -- 2.11.0