aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/Open311.pm2
-rw-r--r--t/open311.t4
2 files changed, 3 insertions, 3 deletions
diff --git a/perllib/Open311.pm b/perllib/Open311.pm
index 997f04b53..730b71958 100644
--- a/perllib/Open311.pm
+++ b/perllib/Open311.pm
@@ -110,7 +110,7 @@ sub _populate_service_request_params {
$params->{lat} = $problem->latitude;
$params->{long} = $problem->longitude;
} else {
- $params->{address} = $problem->postcode;
+ $params->{address_string} = $problem->postcode;
}
if ( $problem->user->phone ) {
diff --git a/t/open311.t b/t/open311.t
index d66a9c2e5..358a58a44 100644
--- a/t/open311.t
+++ b/t/open311.t
@@ -371,11 +371,11 @@ for my $test (
if ( $test->{includes_latlong} ) {
ok $c->param('lat'), 'has latitude';
ok $c->param('long'), 'has longitude';
- is $c->param('address'), undef, 'no address';
+ is $c->param('address_string'), undef, 'no address';
} else {
is $c->param('lat'), undef, 'no latitude';
is $c->param('long'), undef, 'no latitude';
- is $c->param('address'), $test->{postcode}, 'has address';
+ is $c->param('address_string'), $test->{postcode}, 'has address';
}
};
}