aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-06 10:13:55 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-06 10:13:55 +0100
commit29c1e2780bca1a348d5d6a9531c967b84110f7be (patch)
tree56d5f7d80e276d608265a267ad82af142ddf0c19
parent819a95ae17f59f1732379926f9738caeb9ff046b (diff)
confirm does not return alert object so do not assign to alert
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm
index a1120470b..8de909738 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -323,7 +323,9 @@ sub signup_for_alerts : Private {
cobrand => $update->cobrand,
cobrand_data => $update->cobrand_data,
lang => $update->lang,
- )->confirm();
+ );
+
+ $alert->confirm();
$alert->update;
}