aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md3
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm3
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;
}