diff options
author | Struan Donald <struan@exo.org.uk> | 2012-05-23 10:03:10 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-05-23 10:03:10 +0100 |
commit | 37887356e600137090aa9819816d659be19ce11c (patch) | |
tree | 693d4203bf270d117c7d0664a9b5677b783d568a | |
parent | 3aa48b3e93fa9388124550ede902b280beae7b33 (diff) |
address_string and not address
-rw-r--r-- | perllib/Open311.pm | 2 | ||||
-rw-r--r-- | t/open311.t | 4 |
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'; } }; } |