diff options
author | Struan Donald <struan@exo.org.uk> | 2012-08-24 16:10:37 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-08-24 16:10:37 +0100 |
commit | 0e87fe14208bb20c4e901ba49c97df91c05e9fd5 (patch) | |
tree | b7b2df1e419187616a317a761125aa23b241a3fa /perllib | |
parent | 7090b00c451ac0a9cb3d9f4b047ebf681c7ba990 (diff) |
adding text from a message manager message increments supporter count
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 4 |
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; |