aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-08-30 14:37:32 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-09-05 11:59:51 +0100
commit0430d26eaab142a324206e6444f93d069e56b906 (patch)
treed055e6b15b0d664a3bb22789b6d4d658e6b393cc /perllib/FixMyStreet/DB/Result/Problem.pm
parent2b8e2e59e63bd5a44070300c507546444296bafc (diff)
Slightly simplify new report category handling.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm7
1 files changed, 0 insertions, 7 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 09c6cb06d..8159d7251 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -376,13 +376,6 @@ sub check_for_errors {
$errors{name} = _('Please enter your name');
}
- if ( $self->category
- && $self->category eq _('-- Pick a category --') )
- {
- $errors{category} = _('Please choose a category');
- $self->category(undef);
- }
-
return \%errors;
}