aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/FakeMapit.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-04-23 16:05:33 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-04-23 16:05:33 +0100
commit79978cebd79325880a7fcbf60b971c1820967cbd (patch)
tree7817595f974111d86e3da3a74c9715be84bc4490 /perllib/FixMyStreet/App/Controller/FakeMapit.pm
parent4f4dd76967e1bff4be4e11a405a2438bfcd25de4 (diff)
Doesn't like 0 ID (#182), check right db flag, and factor out tabs for different usage.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/FakeMapit.pm')
-rwxr-xr-xperllib/FixMyStreet/App/Controller/FakeMapit.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/FakeMapit.pm b/perllib/FixMyStreet/App/Controller/FakeMapit.pm
index 57c2e7c27..bc46df712 100755
--- a/perllib/FixMyStreet/App/Controller/FakeMapit.pm
+++ b/perllib/FixMyStreet/App/Controller/FakeMapit.pm
@@ -12,13 +12,13 @@ FixMyStreet::App::Controller::FakeMapit - Catalyst Controller
A controller to fake mapit when we don't have it. If you set MAPIT_URL to
.../fakemapit/ it should all just work, with a mapit that assumes the whole
-world is one area, with ID 0 and name "Default Area".
+world is one area, with ID 161 and name "Default Area".
=head1 METHODS
=cut
-my $area = { "name" => "Default Area", "type" => "ZZZ", "id" => 0 };
+my $area = { "name" => "Default Area", "type" => "ZZZ", "id" => 161 };
sub output : Private {
my ( $self, $c, $data ) = @_;
@@ -29,7 +29,7 @@ sub output : Private {
sub point : Local {
my ( $self, $c ) = @_;
- $c->detach( 'output', [ { 0 => $area } ] );
+ $c->detach( 'output', [ { 161 => $area } ] );
}
sub area : Local {
@@ -39,10 +39,10 @@ sub area : Local {
sub areas : Local {
my ( $self, $c ) = @_;
- $c->detach( 'output', [ { 0 => $area } ] );
+ $c->detach( 'output', [ { 161 => $area } ] );
}
-sub children : Path('area/0/children') : Args(0) {
+sub children : Path('area/161/children') : Args(0) {
my ( $self, $c ) = @_;
$c->detach( 'output', [ {} ] );
}