diff options
author | Dave Arter <davea@mysociety.org> | 2018-03-22 10:56:06 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-03-29 16:04:32 +0100 |
commit | 953bad71c54b3b206e649edd1c228040fc5d3d2d (patch) | |
tree | aacabdcb99dfe485a27889ea1027308d448bdeb2 | |
parent | add49f731f5da4f06fcc0a5b498ec6d18c82c740 (diff) |
Fix invalid SQL on cobrand admin update edit pages
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 21c15c77c..2767d93ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ - Fix check for visible sub map links after 'Try again'. - Stop race condition when making a new report quickly. - Set a session timezone in case database server is set differently. + - Fix SQL error on update edit admin page in cobrands. #2049 - Admin improvements: - Inspectors can set non_public status of reports. #1992 - Default start date is shown on the dashboard. diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 8849fdd8c..e5514c33b 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -1247,7 +1247,7 @@ sub users: Path('users') : Args(0) { sub update_edit : Path('update_edit') : Args(1) { my ( $self, $c, $id ) = @_; - my $update = $c->cobrand->updates->search({ id => $id })->first; + my $update = $c->cobrand->updates->search({ 'me.id' => $id })->first; $c->detach( '/page_error_404_not_found', [] ) unless $update; |