diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-09-11 12:15:03 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-10-25 14:07:13 +0100 |
commit | 4a49ae1152800d65955df92efece935f1a673fcf (patch) | |
tree | e958c572fafac4048d603c5a196de83f9252945e /perllib/FixMyStreet/App/Controller | |
parent | 6fce2a15ec593971ccc137c28527ebc967556014 (diff) |
Make contact edit note optional on staging sites.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/Bodies.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm index ca615f186..f47ec7a2f 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm @@ -220,7 +220,7 @@ sub update_contact : Private { my $category = $self->trim( $c->get_param('category') ); $errors{category} = _("Please choose a category") unless $category; - $errors{note} = _('Please enter a message') unless $c->get_param('note'); + $errors{note} = _('Please enter a message') unless $c->get_param('note') || FixMyStreet->config('STAGING_SITE'); my $contact = $c->model('DB::Contact')->find_or_new( { |