summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2019-06-12 03:24:26 -0400
committerMitch Jackson <mitch@freeside.biz>2019-06-12 03:24:26 -0400
commit978a10cd56e76e763b15f21c533d507d5bc84dec (patch)
tree4e92b5f250f9b92c5cc5fd4b94d779ef527a8220
parent4e282b89c158949c1726f044e0102e126fbf5bf2 (diff)
RT# 80488 Current city value always exists in cities selectbox
-rw-r--r--httemplate/elements/city.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/elements/city.html b/httemplate/elements/city.html
index 3c5e917..f710d04 100644
--- a/httemplate/elements/city.html
+++ b/httemplate/elements/city.html
@@ -131,6 +131,10 @@ function <% $pre %>county_changed(what, callback) {}
<% $select_style %>
>
+% if ( $opt{city} ) {
+ <OPTION VALUE="<% $opt{city} %>" SELECTED><% $opt{city} %></OPTION>
+% }
+
% unless ( $opt{'disable_empty'} ) {
<OPTION VALUE="" <% $opt{city} eq '' ? 'SELECTED' : '' %>><% $opt{empty_label} %></OPTION>
% }