diff options
| author | Mitch Jackson <mitch@freeside.biz> | 2019-06-12 03:24:26 -0400 |
|---|---|---|
| committer | Mitch Jackson <mitch@freeside.biz> | 2019-06-12 03:54:50 -0400 |
| commit | 1a6932d522b102c5f1746e2d1d4a7e78bcb3c267 (patch) | |
| tree | 5155e10610ab668c904b6279476065db49e169d2 | |
| parent | 885556b3b066581111b485b78ac33033f2b469db (diff) | |
RT# 80488 Current city value always exists in cities selectbox
| -rw-r--r-- | httemplate/elements/city.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/elements/city.html b/httemplate/elements/city.html index 3c5e91782..f710d04db 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> % } |
