aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-07-13 11:03:10 +0100
committerStruan Donald <struan@exo.org.uk>2012-07-13 11:03:10 +0100
commitdc68779484dcfb479cb5693a170b4ce36d25ff28 (patch)
tree336354d79aae758b192fc4294198b0e54468861b
parent0c8435fc09f3593d4d673a985a63fc881a157320 (diff)
do not fall back to the default get_council_sender method
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyBarangay.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyBarangay.pm b/perllib/FixMyStreet/Cobrand/FixMyBarangay.pm
index 51d49242d..1092a5f07 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyBarangay.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyBarangay.pm
@@ -4,6 +4,19 @@ use base 'FixMyStreet::Cobrand::Default';
use strict;
use warnings;
+sub get_council_sender {
+ my ( $self, $area_id, $area_info ) = @_;
+
+ my $send_method;
+
+ my $council_config = FixMyStreet::App->model("DB::Open311conf")->search( { area_id => $area_id } )->first;
+ $send_method = $council_config->send_method if $council_config;
+
+ return $send_method if $send_method;
+
+ return 'Email';
+}
+
sub path_to_web_templates {
my $self = shift;
return [