aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-11-11 07:48:57 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-11-11 07:48:57 +0000
commitdace204d71f395b07c4f746599bc9f3d6e620886 (patch)
treed8382bafc3d27c6686b7ece1ab396db18d33343b /perllib/FixMyStreet/App/Controller/Report/New.pm
parent881fc519900cfc2a5675925c8ac7e5080435db42 (diff)
parentcab0360bdbe587abe68a9e5921bd19200714ff39 (diff)
Merge branch 'issues/commercial/787-bristol-assets'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index b3b5d00fd..e2569d2e9 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -913,7 +913,7 @@ sub set_report_extras : Private {
foreach my $contact (@$contacts) {
my $metas = $contact->get_metadata_for_input;
foreach my $field ( @$metas ) {
- if ( lc( $field->{required} ) eq 'true' ) {
+ if ( lc( $field->{required} ) eq 'true' && !$c->cobrand->category_extra_hidden($field->{code})) {
unless ( $c->get_param($param_prefix . $field->{code}) ) {
$c->stash->{field_errors}->{ $field->{code} } = _('This information is required');
}