From fa739c070cd091b4811cf1e4bbd4abccf405c3dd Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 6 Feb 2010 10:17:45 +0100 Subject: 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. --- lib/VNDB/Handler/Users.pm | 1 + 1 file changed, 1 insertion(+) 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( -- cgit v1.2.3