aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/TfL.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/TfL.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/TfL.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/TfL.pm b/perllib/FixMyStreet/Cobrand/TfL.pm
index 797b872a4..e32711a02 100644
--- a/perllib/FixMyStreet/Cobrand/TfL.pm
+++ b/perllib/FixMyStreet/Cobrand/TfL.pm
@@ -83,7 +83,9 @@ sub base_url_for_report {
sub categories_restriction {
my ($self, $rs) = @_;
- return $rs->search( { 'body.name' => 'TfL' } );
+ $rs = $rs->search( { 'body.name' => 'TfL' } );
+ return $rs unless $self->{c}->stash->{categories_for_point}; # Admin page
+ return $rs->search( { category => { -not_in => $self->_tfl_no_resend_categories } } );
}
sub admin_user_domain { 'tfl.gov.uk' }
@@ -498,4 +500,10 @@ sub _cleaning_groups { [ 'Street cleaning' ] }
sub _tfl_council_category { 'General Litter / Rubbish Collection' }
+sub _tfl_no_resend_categories { [
+ 'General Litter / Rubbish Collection',
+ 'Other (TfL)',
+ 'Timings',
+] }
+
1;