aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Contact/Enquiry.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-05-29 14:37:07 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-09-02 14:52:54 +0100
commit36401150f6ea0775f3c70a30ef871ffd6defa94b (patch)
treee6e341a19cc3bb12121789abc89d020acee6d81e /perllib/FixMyStreet/App/Controller/Contact/Enquiry.pm
parent4f96bd558e0b915adef325f27ac5ccd65e9b310f (diff)
[Hounslow] Factor non-map report creation calls.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Contact/Enquiry.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Contact/Enquiry.pm12
1 files changed, 3 insertions, 9 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Contact/Enquiry.pm b/perllib/FixMyStreet/App/Controller/Contact/Enquiry.pm
index 5b1c4980f..da5b9906e 100644
--- a/perllib/FixMyStreet/App/Controller/Contact/Enquiry.pm
+++ b/perllib/FixMyStreet/App/Controller/Contact/Enquiry.pm
@@ -49,15 +49,9 @@ sub submit : Path('submit') : Args(0) {
$c->set_param('pc', '');
$c->set_param('skipped', 1);
- $c->forward('/report/new/initialize_report');
- $c->forward('/report/new/check_for_category');
- $c->forward('/auth/check_csrf_token');
- $c->forward('/report/new/process_report');
- $c->forward('/report/new/process_user');
- $c->forward('handle_uploads');
- $c->forward('/photo/process_photo');
- $c->go('index', [ 1 ]) unless $c->forward('/report/new/check_for_errors');
- $c->forward('/report/new/save_user_and_report');
+ $c->forward('/report/new/non_map_creation', [ [ '/contact/enquiry/handle_uploads' ] ])
+ or $c->go('index', [ 1 ]);
+
$c->forward('confirm_report');
$c->stash->{success} = 1;