summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-02-06 10:17:45 +0100
committerYorhel <git@yorhel.nl>2010-02-06 10:17:45 +0100
commitfa739c070cd091b4811cf1e4bbd4abccf405c3dd (patch)
tree62b37e922354074edd496c4123098c48a4ca8f29
parent2c14147ea306791b5dcb84751ddd1a724c7d8a42 (diff)
Handler::Users: Re-fetch notifycount after batch-editing notifications
So that the count displayed in the main menu is updated immediately, rather than on a subsequent pageview.
-rw-r--r--lib/VNDB/Handler/Users.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index f68f9db9..4a3ca71b 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -559,6 +559,7 @@ sub notifies {
my @ids = grep $_, @{$frm->{notifysel}};
$self->dbNotifyMarkRead(@ids) if @ids && $frm->{markread};
$self->dbNotifyRemove(@ids) if @ids && $frm->{remove};
+ $self->authInfo->{notifycount} = $self->dbUserGet(uid => $uid, what => 'notifycount')->[0]{notifycount};
}
my($list, $np) = $self->dbNotifyGet(