[freeside-commits] branch FREESIDE_4_BRANCH updated. 9e63bce0ecc0579954e91c28958a59f6e2ed018f
Ivan
ivan at 420.am
Mon May 15 16:18:21 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 9e63bce0ecc0579954e91c28958a59f6e2ed018f (commit)
from 043632428db588448f0b070fba6a1d9acaaa7918 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9e63bce0ecc0579954e91c28958a59f6e2ed018f
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon May 15 16:18:20 2017 -0700
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 29563c5..24df352 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
+% ) {
+ <INPUT NAME="locationnum" ID="locationnum" TYPE="hidden" VALUE="-1">
+% } else {
+
<SELECT NAME = "locationnum"
ID = "locationnum"
% if ( $opt{onchange} ) {
@@ -6,7 +16,6 @@
>
% #false laziness w/select-table.html
-% my @pre_options = $opt{pre_options} ? @{ $opt{pre_options} } : ();
% while ( @pre_options ) {
% my $pre_opt = shift(@pre_options);
% my $pre_label = shift(@pre_options);
@@ -48,6 +57,7 @@
% }
</SELECT>
+% }
<%init>
my $conf = new FS::Conf;
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/select-cust_location.html | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list