From cfb0dd09a7be10d6443995930cbb8739f4d1ecc7 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 11 Dec 2018 16:26:16 +0000 Subject: [fixmystreet.com] Get topic when reporting abuse. --- perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 3 --- templates/web/fixmystreet.com/contact/who.html | 18 +++++++++++++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index b2fc5ba83..fb454f495 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -52,9 +52,6 @@ sub extra_contact_validation { my $self = shift; my $c = shift; - # Don't care about dest if reporting abuse - return () if $c->stash->{problem}; - my %errors; $c->stash->{dest} = $c->get_param('dest'); diff --git a/templates/web/fixmystreet.com/contact/who.html b/templates/web/fixmystreet.com/contact/who.html index a683412b7..996ceeca7 100644 --- a/templates/web/fixmystreet.com/contact/who.html +++ b/templates/web/fixmystreet.com/contact/who.html @@ -1,10 +1,23 @@ -[% IF NOT problem %]

Topic:

[% IF field_errors.dest %]
[% field_errors.dest %]
[% END %] +[% IF problem %] +
+ + +
+
+ + +
+
+ + +
+[% ELSE %]
@@ -29,6 +42,7 @@
+[% END %] - -[% END %] -- cgit v1.2.3