aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-01-19 17:44:51 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-01-19 17:44:52 +0000
commit24c0c22222622dd943a7486b5aec3c871ae6d5c0 (patch)
treec22e9c5e24bda3d1c609e88480d3460aaa630b9a
parentbbf46b46378749dd884843b182700daec39649c1 (diff)
[fixmystreet.com] Change clashing ward field name.
The code expects ward to be used to redirect to a ward page, not as a filter.
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm2
-rw-r--r--templates/web/fixmystreet.com/reports/summary.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index 8550b745b..ebf17dacb 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -440,7 +440,7 @@ sub summary : Private {
# required to stop errors in generate_grouped_data
$c->stash->{q_state} = '';
- $c->stash->{ward} = $c->get_param('ward');
+ $c->stash->{ward} = $c->get_param('area');
$c->stash->{start_date} = $dtf->format_date($start_date);
$c->stash->{end_date} = $c->get_param('end_date');
diff --git a/templates/web/fixmystreet.com/reports/summary.html b/templates/web/fixmystreet.com/reports/summary.html
index 8b7f84f59..11ee5df28 100644
--- a/templates/web/fixmystreet.com/reports/summary.html
+++ b/templates/web/fixmystreet.com/reports/summary.html
@@ -17,8 +17,8 @@
<form method="GET">
<div class="filters">
<p>
- <label for="ward">[% loc('Problems reported in area:') %]</label>
- <select class="form-control" id="ward" name="ward">
+ <label for="area">[% loc('Problems reported in area:') %]</label>
+ <select class="form-control" id="area" name="area">
<option value="">[% body.name %]</option>
[% FOR w IN children.values.sort('name') %]
<option value="[% w.id %]"[% ' selected' IF w.id == ward %]>[% w.name %]</option>