diff options
author | Struan Donald <struan@exo.org.uk> | 2012-07-13 11:03:10 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-07-13 11:03:10 +0100 |
commit | dc68779484dcfb479cb5693a170b4ce36d25ff28 (patch) | |
tree | 336354d79aae758b192fc4294198b0e54468861b | |
parent | 0c8435fc09f3593d4d673a985a63fc881a157320 (diff) |
do not fall back to the default get_council_sender method
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyBarangay.pm | 13 |
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 [ |