Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
75ab7e01
Commit
75ab7e01
authored
Jan 03, 2006
by
wurblzap%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 322082: Clean up user selection SQL.
Patch by Marc Schumann <wurblzap@gmail.com>, r=LpSolit, a=justdave
parent
972eed87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
editusers.cgi
editusers.cgi
+9
-5
No files found.
editusers.cgi
View file @
75ab7e01
...
...
@@ -100,9 +100,15 @@ if ($action eq 'search') {
}
else
{
$visibleGroups
=
1
;
if
(
$grouprestrict
eq
'1'
)
{
$query
.=
', user_group_map AS ugm'
;
$query
.=
qq{, user_group_map AS ugm
WHERE ugm.user_id = profiles.userid
AND ugm.isbless = 0
}
;
$nextCondition
=
'AND'
;
}
else
{
$nextCondition
=
'WHERE'
;
}
$nextCondition
=
'WHERE'
;
}
if
(
!
$visibleGroups
)
{
...
...
@@ -137,9 +143,7 @@ if ($action eq 'search') {
if
(
$grouprestrict
eq
'1'
)
{
my
$grouplist
=
join
(
','
,
@
{
Bugzilla::
User
->
flatten_group_membership
(
$group
->
id
)});
$query
.=
" $nextCondition profiles.userid = ugm.user_id "
.
"AND ugm.group_id IN($grouplist) "
.
"AND ugm.isbless = 0"
;
$query
.=
" $nextCondition ugm.group_id IN($grouplist) "
;
}
$query
.=
' ORDER BY profiles.login_name'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment