aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Contact.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-02-20 11:24:32 +0000
committerMatthew Somerville <matthew@mysociety.org>2015-02-20 11:24:32 +0000
commit834d18012ab64e340d06f539fee17d34e0cf7675 (patch)
tree6478756405efd2a2c04b3bc9d490d396c9112d0f /perllib/FixMyStreet/App/Controller/Contact.pm
parent7b227dea1532f3e68c369d8447611349e8cb44b6 (diff)
parent25d518e794b7d95525edaa9357adec48a4172c24 (diff)
Merge branch '972-completion-adverts'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Contact.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Contact.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Contact.pm b/perllib/FixMyStreet/App/Controller/Contact.pm
index f48518d77..222c0c242 100644
--- a/perllib/FixMyStreet/App/Controller/Contact.pm
+++ b/perllib/FixMyStreet/App/Controller/Contact.pm
@@ -41,6 +41,11 @@ Handle contact us form submission
sub submit : Path('submit') : Args(0) {
my ( $self, $c ) = @_;
+ if (my $testing = $c->req->params->{_test_}) {
+ $c->stash->{success} = $c->req->params->{success};
+ return;
+ }
+
$c->res->redirect( '/contact' ) and return unless $c->req->method eq 'POST';
return