diff options
author | Mark Wells <mark@freeside.biz> | 2015-12-22 17:03:07 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-12-22 17:22:26 -0800 |
commit | 152c54a5c8277fb09429d6ded83535edd0a914f2 (patch) | |
tree | 5f3e731195cf51c9a8575355857e8f8175b5fdc8 /httemplate | |
parent | 659bfc275fe537566bfde62b3a2a7477e10e0bc0 (diff) |
improve handling of internal errors from US Census geocoding, #39549
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/standardize_locations.js | 7 | ||||
-rw-r--r-- | httemplate/search/log.html | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/httemplate/elements/standardize_locations.js b/httemplate/elements/standardize_locations.js index c2857377a..fed57334a 100644 --- a/httemplate/elements/standardize_locations.js +++ b/httemplate/elements/standardize_locations.js @@ -114,7 +114,12 @@ function confirm_standardize(arg) { // then all entered address fields are correct // but we still need to set the lat/long fields and addr_clean - status_message('Verified'); + + if ( returned['addr_clean'] ) { + status_message('Verified'); + } else { + status_message('Unverified'); + } replace_address(); } else { diff --git a/httemplate/search/log.html b/httemplate/search/log.html index d1bfb6cc9..7714f4614 100644 --- a/httemplate/search/log.html +++ b/httemplate/search/log.html @@ -137,7 +137,7 @@ my $tt_sub = sub { return '' if @context == 1 and length($log->message) <= 60; my $html = '<DIV CLASS="tooltip">'.(shift @context).'</DIV>'; my $pre = '↳'; - foreach (@context, $log->message) { + foreach (map encode_entities($_), @context, $log->message) { $html .= "<DIV>$pre$_</DIV>"; $pre = ' '.$pre; } |