aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Body.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2014-06-13 17:12:44 +0100
committerStruan Donald <struan@exo.org.uk>2014-07-01 17:42:22 +0100
commitad785aefa213856e046802626e58bd2ec7d0756b (patch)
tree4663b272145bf4cbbc6225941ffe20b1e3799717 /perllib/FixMyStreet/DB/Result/Body.pm
parent291c66c7700b8e6c90052b6d4eb436909fbe0865 (diff)
Link through from all reports page to sub categories
Add a type parameter to the /reports/body page to restrict list by problem category. Only link to report categories that have entries. Fixes #798
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Body.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Body.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Body.pm b/perllib/FixMyStreet/DB/Result/Body.pm
index be4adeca9..6b529735d 100644
--- a/perllib/FixMyStreet/DB/Result/Body.pm
+++ b/perllib/FixMyStreet/DB/Result/Body.pm
@@ -98,9 +98,9 @@ __PACKAGE__->has_many(
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hTOxxiiHmC8nmQK/p8dXhQ
sub url {
- my ( $self, $c ) = @_;
+ my ( $self, $c, $args ) = @_;
# XXX $areas_info was used here for Norway parent - needs body parents, I guess
- return $c->uri_for( '/reports/' . $c->cobrand->short_name( $self ) );
+ return $c->uri_for( '/reports/' . $c->cobrand->short_name( $self ), $args || {} );
}
sub areas {