From 6860ae84b9bbe1e6cebcd39ed9732a1379331e9d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 11 Mar 2014 09:48:45 +0100 Subject: [PATCH] Avoid browser to hang by adding PROJECT_MAX_NB_TASKS. --- htdocs/projet/tasks/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/tasks/index.php b/htdocs/projet/tasks/index.php index 0429c9da1bd..8edb2c6f71e 100644 --- a/htdocs/projet/tasks/index.php +++ b/htdocs/projet/tasks/index.php @@ -126,7 +126,7 @@ print ''; print ''; print "\n"; -if (count($tasksarray) > 1000) +if (count($tasksarray) > (empty($conf->global->PROJECT_MAX_NB_TASKS)?1000:$conf->global->PROJECT_MAX_NB_TASKS)) { print ''; print '';