aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-10 14:36:43 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-10 14:36:43 +0000
commit52ba9ec5f40ca37bfaf2d41feecf3a86a39a8ff1 (patch)
tree31c8832b22464de12753ba336b3621722c9ac864 /perllib/FixMyStreet/App/Controller/Report/New.pm
parent105c3459f00ff4fa81affd960fa86cfe8ac28562 (diff)
Zurich: report form without login, optional name, no title.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index ba45a90ab..7759bb938 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -927,6 +927,13 @@ sub check_for_errors : Private {
%{ $c->stash->{report}->check_for_errors },
);
+ # Zurich, we don't care about title or name
+ # There is no title, and name is optional
+ if ( $c->cobrand->moniker eq 'zurich' ) {
+ delete $field_errors{title};
+ delete $field_errors{name};
+ }
+
# FIXME: need to check for required bromley fields here
# if they're got the login details wrong when signing in then