Update the count when an admin goes to admin/validate.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 5 May 2008 21:21:32 +0000 (23:21 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 5 May 2008 21:21:32 +0000 (23:21 +0200)
Avoid inconsistent states when several copies of the site
use the same DB.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/admin.php

index e57113a..a0dbbca 100644 (file)
@@ -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());
     }