diff options
author | Yorhel <git@yorhel.nl> | 2010-02-06 10:17:45 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-02-06 10:17:45 +0100 |
commit | fa739c070cd091b4811cf1e4bbd4abccf405c3dd (patch) | |
tree | 62b37e922354074edd496c4123098c48a4ca8f29 /lib/VNDB/Handler/Users.pm | |
parent | 2c14147ea306791b5dcb84751ddd1a724c7d8a42 (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.
Diffstat (limited to 'lib/VNDB/Handler/Users.pm')
-rw-r--r-- | lib/VNDB/Handler/Users.pm | 1 |
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( |