aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-08-28 13:08:56 +0100
committerStruan Donald <struan@exo.org.uk>2012-08-28 13:08:56 +0100
commit716c333de51d06e289f0dd798ec675b6466e336a (patch)
tree03033bb6c7ce30b18597ad3e91f02f0a227d647d
parent3443ba5978bacf36d3b3616c10593f93a28b70ff (diff)
remove race condition
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 4127b6247..57d27b3e4 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -68,8 +68,7 @@ sub support : Path('support') : Args(0) {
if ( $id && $c->cobrand->can_support_problems && $c->user && $c->user->from_council ) {
$c->forward( 'load_problem_or_display_error', [ $id ] );
- $c->stash->{problem}->interest_count( $c->stash->{problem}->interest_count + 1 );
- $c->stash->{problem}->update;
+ $c->stash->{problem}->update( { interest_count => \'interest_count +1' } );
}
$c->res->redirect( $uri );
}