diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-08-30 14:37:32 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-09-05 11:59:51 +0100 |
commit | 0430d26eaab142a324206e6444f93d069e56b906 (patch) | |
tree | d055e6b15b0d664a3bb22789b6d4d658e6b393cc /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | 2b8e2e59e63bd5a44070300c507546444296bafc (diff) |
Slightly simplify new report category handling.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 7 |
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; } |