aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/DB/Result')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index a222c78cd..0b8bc4de0 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -893,7 +893,7 @@ bodies by some mechanism. Right now that mechanism is Open311.
sub updates_sent_to_body {
my $self = shift;
- return unless $self->send_method_used && $self->send_method_used eq 'Open311';
+ return unless $self->send_method_used && $self->send_method_used =~ /Open311/;
# Some bodies only send updates *to* FMS, they don't receive updates.
my $cobrand = $self->get_cobrand_logged;
@@ -922,6 +922,12 @@ sub add_send_method {
}
}
+sub resend {
+ my $self = shift;
+ $self->whensent(undef);
+ $self->send_method_used(undef);
+}
+
sub as_hashref {
my ($self, $c, $cols) = @_;