diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-06-12 13:58:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-06-12 13:58:23 +0100 |
commit | 84d9686c524e380d53601314e2a4623ddf3bbded (patch) | |
tree | 16643045f74e9edab78d76c0c06185e346980658 /perllib/FixMyStreet | |
parent | 493984c28055333dc9f7736724d77eb50b6d5007 (diff) |
[Hounslow] Fix restriction lookup on around pages.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Hounslow.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Hounslow.pm b/perllib/FixMyStreet/Cobrand/Hounslow.pm index 1628715c6..ad764fdfd 100644 --- a/perllib/FixMyStreet/Cobrand/Hounslow.pm +++ b/perllib/FixMyStreet/Cobrand/Hounslow.pm @@ -181,8 +181,9 @@ sub lookup_site_code_config { { # their cobrand at all. sub problems_restriction { my ($self, $rs) = @_; + my $table = ref $rs eq 'FixMyStreet::DB::ResultSet::Nearby' ? 'problem' : 'me'; return $rs->to_body($self->body)->search({ - 'me.confirmed' => { '>=', '2019-05-06' } + "$table.confirmed" => { '>=', '2019-05-06' } }); } |