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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
80bd2397
Commit
80bd2397
authored
Oct 14, 2005
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 312406 Checksetup fails to check for existing group_group_map for Bugzilla <2.17
patch by A. Karl Kornel <karl@kornel.name> r=joel, a=justdave
parent
c872f810
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
checksetup.pl
checksetup.pl
+6
-0
No files found.
checksetup.pl
View file @
80bd2397
...
...
@@ -4205,6 +4205,11 @@ if (@admins) {
(user_id, group_id, isbless, grant_type)
VALUES ($userid, $adminid, 1, "
.
GRANT_DIRECT
.
")"
);
}
$dbh
->
bz_lock_tables
(
'groups READ'
,
'group_group_map WRITE'
);
$dbh
->
do
(
'DELETE FROM group_group_map WHERE member_id = ?'
,
undef
,
$adminid
);
$sth
=
$dbh
->
prepare
(
"SELECT id FROM groups"
);
$sth
->
execute
();
while
(
my
(
$id
)
=
$sth
->
fetchrow_array
()
)
{
...
...
@@ -4222,6 +4227,7 @@ if (@admins) {
(member_id, grantor_id, grant_type)
VALUES ($adminid, $id,"
.
GROUP_MEMBERSHIP
.
")"
);
}
$dbh
->
bz_unlock_tables
();
}
...
...
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