aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-01 14:54:01 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-01 14:54:01 +0000
commit5e946a60ac98c984ca21ba3203ccb03be17d9a39 (patch)
treee6a61a53b41dca7c57876500cfa66d14983a2ee3
parent15b55b907213d3a170d9a2f6113077ad91a3c6c8 (diff)
parent113ddf4615c434f2da598a7c31d70e4dae53017b (diff)
Merge branch 'bucks-topic-question-all'
-rw-r--r--perllib/FixMyStreet/Cobrand/Buckinghamshire.pm20
-rw-r--r--perllib/FixMyStreet/Cobrand/UKCouncils.pm20
-rw-r--r--templates/web/fixmystreet-uk-councils/contact/who.html (renamed from templates/web/buckinghamshire/contact/who.html)0
3 files changed, 20 insertions, 20 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
index a96b2b616..ef9848f79 100644
--- a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
@@ -438,24 +438,4 @@ sub lookup_site_code_config { {
}
} }
-sub extra_contact_validation {
- my $self = shift;
- my $c = shift;
-
- # Don't care about dest unless reporting abuse
- return () unless $c->stash->{problem};
-
- my %errors;
-
- $c->stash->{dest} = $c->get_param('dest');
-
- if (!$c->get_param('dest')) {
- $errors{dest} = "Please enter a topic of your message";
- } elsif ( $c->get_param('dest') eq 'council' || $c->get_param('dest') eq 'update' ) {
- $errors{not_for_us} = 1;
- }
-
- return %errors;
-}
-
1;
diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm
index 7eb63a371..ab3d8f91b 100644
--- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm
+++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm
@@ -306,6 +306,26 @@ sub lookup_site_code {
return $site_code;
}
+sub extra_contact_validation {
+ my $self = shift;
+ my $c = shift;
+
+ # Don't care about dest unless reporting abuse
+ return () unless $c->stash->{problem};
+
+ my %errors;
+
+ $c->stash->{dest} = $c->get_param('dest');
+
+ if (!$c->get_param('dest')) {
+ $errors{dest} = "Please enter a topic of your message";
+ } elsif ( $c->get_param('dest') eq 'council' || $c->get_param('dest') eq 'update' ) {
+ $errors{not_for_us} = 1;
+ }
+
+ return %errors;
+}
+
=head2 _distance
diff --git a/templates/web/buckinghamshire/contact/who.html b/templates/web/fixmystreet-uk-councils/contact/who.html
index e3b045521..e3b045521 100644
--- a/templates/web/buckinghamshire/contact/who.html
+++ b/templates/web/fixmystreet-uk-councils/contact/who.html