diff options
author | Struan Donald <struan@fury.ukcod.org.uk> | 2011-06-01 16:13:02 +0100 |
---|---|---|
committer | Struan Donald <struan@fury.ukcod.org.uk> | 2011-06-01 16:13:02 +0100 |
commit | ec851116d3a1b697996810eff8b2701de78ff621 (patch) | |
tree | 3741e40ecadf30179093f0baae2691e1bf81ed18 | |
parent | 46e910cd2029c346e88a52388561d715c876ea84 (diff) |
use the update from the stash as that should always be there
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index e8bb0f70d..a0c332b40 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -318,7 +318,7 @@ sub signup_for_alerts : Private { my $alert = $c->model( 'DB::Alert' )->find_or_create( user => $c->stash->{update}->user, alert_type => 'new_updates', - parameter => $c->stash->{problem}->id + parameter => $c->stash->{update}->problem_id, ); $alert->update; |