diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-06 09:20:38 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-06 09:20:38 +0100 |
commit | 819a95ae17f59f1732379926f9738caeb9ff046b (patch) | |
tree | 743c52675d1738618557f46f853ac46dd8b8530f /perllib/FixMyStreet/App/Controller/Report/Update.pm | |
parent | e26bc99396d3eaefc3fd7d81c010dc4028767690 (diff) | |
parent | b388fd0be5296426225089ed188b3c1cdd802415 (diff) |
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index eadf2beea..a1120470b 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -315,12 +315,15 @@ sub signup_for_alerts : Private { my ( $self, $c ) = @_; if ( $c->stash->{add_alert} ) { + my $update = $c->stash->{update}; my $alert = $c->model('DB::Alert')->find_or_create( - user => $c->stash->{update}->user, - alert_type => 'new_updates', - parameter => $c->stash->{update}->problem_id, - confirmed => 1, - ); + user => $update->user, + alert_type => 'new_updates', + parameter => $update->problem_id, + cobrand => $update->cobrand, + cobrand_data => $update->cobrand_data, + lang => $update->lang, + )->confirm(); $alert->update; } |