aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-08-24 16:10:37 +0100
committerStruan Donald <struan@exo.org.uk>2012-08-24 16:10:37 +0100
commit0e87fe14208bb20c4e901ba49c97df91c05e9fd5 (patch)
treeb7b2df1e419187616a317a761125aa23b241a3fa /perllib
parent7090b00c451ac0a9cb3d9f4b047ebf681c7ba990 (diff)
adding text from a message manager message increments supporter count
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm
index 1141e213a..39d0ab225 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -76,6 +76,10 @@ sub update_problem : Private {
$problem->state('confirmed');
}
+ if ( $c->cobrand->can_support_problems && $c->user && $c->user->from_council && $c->req->param('external_source_id') ) {
+ $problem->interest_count( $problem->interest_count + 1 );
+ }
+
$problem->lastupdate( \'ms_current_timestamp()' );
$problem->update;