[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 3eec0dfb87b5f49fa8fb740ecbd4f8085647522a

Sylvain Beucler beuc-inria at fusionforge.org
Wed May 14 17:29:58 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_3 has been updated
       via  3eec0dfb87b5f49fa8fb740ecbd4f8085647522a (commit)
      from  4a5d04fabbf0e534e124d6796dbd0fe0a21e5430 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3eec0dfb87b5f49fa8fb740ecbd4f8085647522a
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Wed May 14 17:27:40 2014 +0200

    admin/useredit.php: don't display the full list of projects that the user could be added to, or it blows a 512M memory limit on large installs

diff --git a/src/www/admin/useredit.php b/src/www/admin/useredit.php
index e8bc75e..2b6f3e2 100644
--- a/src/www/admin/useredit.php
+++ b/src/www/admin/useredit.php
@@ -286,14 +286,14 @@ if ($i > 0) {
 	echo '<p>'._('This user is not a member of any project.').'</p>';
 }
 
-echo '<h2>'._('Add membership to new projects').'</h2>';
+echo '<h2>'._('Add membership to new projects').' '._('(100 shown)').'</h2>';
 $addToNewProjectsTableTitle = array();
 $addToNewProjectsTableTitle[] = '';
 $addToNewProjectsTableTitle[] = _('Name');
 $addToNewProjectsTableTitle[] = _('Unix name');
 $addToNewProjectsTableTitle[] = _('Operations');
 $addToNewProjectsTableTitle[] = _('Select role');
-$fullListProjectsQueryResult = db_query_params('SELECT group_id from groups where status = $1 and is_template = 0', array('A'));
+$fullListProjectsQueryResult = db_query_params('SELECT group_id from groups where status = $1 and is_template = 0 LIMIT 100', array('A'));
 if ($fullListProjectsQueryResult) {
 	echo $GLOBALS['HTML']->listTableTop($addToNewProjectsTableTitle);
 	while ($projectQueryResult = db_fetch_array($fullListProjectsQueryResult)) {

-----------------------------------------------------------------------

Summary of changes:
 src/www/admin/useredit.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list