aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/Update.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-01 17:28:37 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-01 17:28:37 +0100
commita2d9fe2659a1723824c58d7e3d663d1725bcab56 (patch)
treed97483d84bbc4a5333407aafb6cde0a2f863ae0f /perllib/FixMyStreet/App/Controller/Report/Update.pm
parente14a8bc6d38d48941628a6239c57385fcf7c7e00 (diff)
mark new_updates alerts as confirmed when they are created
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm
index a0c332b40..eadf2beea 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -315,10 +315,11 @@ sub signup_for_alerts : Private {
my ( $self, $c ) = @_;
if ( $c->stash->{add_alert} ) {
- my $alert = $c->model( 'DB::Alert' )->find_or_create(
- user => $c->stash->{update}->user,
+ my $alert = $c->model('DB::Alert')->find_or_create(
+ user => $c->stash->{update}->user,
alert_type => 'new_updates',
- parameter => $c->stash->{update}->problem_id,
+ parameter => $c->stash->{update}->problem_id,
+ confirmed => 1,
);
$alert->update;