aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-12-03 11:55:14 +0000
committerStruan Donald <struan@exo.org.uk>2012-12-03 17:49:11 +0000
commitd17fadea1c8eaaed02cd82106e93b83fd74515be (patch)
tree8b0470316104f0a758ea3cc44f76cee7067c110f /perllib/FixMyStreet/App/Controller
parent59b4cd804cf9134f830109bfc51fba3856a21ea3 (diff)
move new report validation out to cobrand so we can over-ride this for
special cases without hard coding it into controller
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index dedd447ee..b2413d9e5 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -922,11 +922,7 @@ sub check_for_errors : Private {
# let the model check for errors
$c->stash->{field_errors} ||= {};
- my %field_errors = (
- %{ $c->stash->{field_errors} },
- %{ $c->stash->{report}->user->check_for_errors },
- %{ $c->stash->{report}->check_for_errors },
- );
+ my %field_errors = $c->cobrand->report_check_for_errors( $c );
# FIXME: need to check for required bromley fields here