diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bromley.pm | 5 | ||||
-rw-r--r-- | perllib/FixMyStreet/Geocode/OSM.pm | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm index 854f6da89..abe8796b5 100644 --- a/perllib/FixMyStreet/Cobrand/Bromley.pm +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -187,10 +187,13 @@ sub open311_config { # make sure we have last_name attribute present in row's extra, so # it is passed correctly to Bromley as attribute[] - if ( $row->cobrand ne 'bromley' ) { + if (!$row->get_extra_field_value('last_name')) { my ( $firstname, $lastname ) = ( $row->name =~ /(\S+)\.?\s+(.+)/ ); push @$extra, { name => 'last_name', value => $lastname }; } + if (!$row->get_extra_field_value('fms_extra_title') && $row->user->title) { + push @$extra, { name => 'fms_extra_title', value => $row->user->title }; + } $row->set_extra_fields(@$extra); diff --git a/perllib/FixMyStreet/Geocode/OSM.pm b/perllib/FixMyStreet/Geocode/OSM.pm index 6e6dbfbb1..b979e2a10 100644 --- a/perllib/FixMyStreet/Geocode/OSM.pm +++ b/perllib/FixMyStreet/Geocode/OSM.pm @@ -14,8 +14,8 @@ use Memcached; use XML::Simple; use Utils; -my $osmapibase = "http://www.openstreetmap.org/api/"; -my $nominatimbase = "http://nominatim.openstreetmap.org/"; +my $osmapibase = "https://www.openstreetmap.org/api/"; +my $nominatimbase = "https://nominatim.openstreetmap.org/"; # string STRING CONTEXT # Looks up on Nominatim, and caches, a user-inputted location. |