View Issue Details

IDProjectCategoryView StatusLast Update
0003022mantisbtbugtrackerpublic2003-12-13 04:41
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.0a3 
Summary0003022: Add user to project form lists disabled users
Description

In manage_proj_edit_page.php disabled users are listed where in pages like bug reminder page, they are not. I believe disabled users should not be listed.

TagsNo tags attached.

Activities

nielx

nielx

2003-03-01 11:42

reporter   ~0003898

I disliked this same behaviour too so I made a patch:

--- ../mantis-0.18.0a3/core/print_api.php 2003-02-24 10:32:32.000000000 +0000
+++ core/print_api.php 2003-03-01 12:42:27.000000000 +0000
@@ -647,7 +647,8 @@
}
}

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

  • list of users that are NOT in the specified project

  • list of users that are NOT in the specified project and that are

  • enabled

    if no project is specified use the current project

    function print_project_user_list_option_list( $p_project_id=0 ) {
    global $g_mantis_project_user_list_table, $g_mantis_user_table;
    @@ -663,6 +664,7 @@
    LEFT JOIN $g_mantis_project_user_list_table p
    ON p.user_id=u.id AND p.project_id='$c_project_id'
    WHERE u.access_level<$t_adm AND

  • u.enabled='1' AND
    p.user_id IS NULL AND
    u.access_level<'$t_adm'
    ORDER BY u.username";
vboctor

vboctor

2003-03-01 13:23

manager   ~0003900

Fixed in CVS. Will be included in 0.18.0a4. Thanks to nielx.

Related Changesets

MantisBT: master bcbae1fb

2003-03-01 07:22

vboctor


Details Diff
Fix 0003022: Add user to project form lists disabled users.

M core/print_api.php
- (print_project_user_list_option_list): Add a condition to the query that users are enabled.

Patch supplied by nielx through the bug tracker.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2063 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0003022
mod - core/print_api.php Diff File
mod - doc/ChangeLog Diff File