diff options
author | Dave Arter <davea@mysociety.org> | 2018-05-09 15:55:56 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-07-04 10:50:11 +0100 |
commit | d784eab96bfbdd05639443a214d87f8439733c97 (patch) | |
tree | 4a33fdbcd38c70c99083f646410a59fbfe503ea0 | |
parent | 6c9b1aed02d891434f02d4746e8556c3560efbc5 (diff) |
Add cobrand hook for custom searching on disambiguation page
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b2e09290..2cfcd33eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,9 @@ - Send login email button on user edit page #2041 - Open311 improvements: - CLOSED status maps to 'closed' state if extended statuses are enabled. + - Development improvements: + - Cobrand hook for presenting custom search results. #2183 + * v2.3.4 (7th June 2018) - Bugfixes: diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index cc6f8387c..a2d7ed025 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -54,6 +54,9 @@ sub index : Path : Args(0) { || $c->forward('/location/determine_location_from_pc'); unless ($ret) { return $c->res->redirect('/') unless $c->get_param('pc') || $partial_report; + # Cobrand may want to perform custom searching at this point, + # e.g. presenting a list of reports matching the user's query. + $c->cobrand->call_hook("around_custom_search"); return; } |