aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-09-11 12:15:03 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-10-25 14:07:13 +0100
commit4a49ae1152800d65955df92efece935f1a673fcf (patch)
treee958c572fafac4048d603c5a196de83f9252945e /perllib/FixMyStreet/App/Controller
parent6fce2a15ec593971ccc137c28527ebc967556014 (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.pm2
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(
{