From: Florent Bruneau Date: Mon, 5 May 2008 21:21:32 +0000 (+0200) Subject: Update the count when an admin goes to admin/validate. X-Git-Tag: core/1.0.0~200 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=90df25304c13db3c9c6e4d29e0a4b6044e99fa97;p=platal.git Update the count when an admin goes to admin/validate. Avoid inconsistent states when several copies of the site use the same DB. Signed-off-by: Florent Bruneau --- diff --git a/modules/admin.php b/modules/admin.php index e57113a..a0dbbca 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -953,6 +953,9 @@ class AdminModule extends PLModule } $page->assign('hide_requests', $hidden); + // Update the count of item to validate here... useful in development configuration + // where several copies of the site use the same DB, but not the same "dynamic configuration" + update_NbValid(); $page->assign('vit', new ValidateIterator()); }