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
1a3c26e6
Commit
1a3c26e6
authored
Dec 20, 2002
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 185760: New group system doesn't upgrade transparently if usebuggroups = 0
r=justdave a=justdave
parent
3154b337
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
checksetup.pl
checksetup.pl
+7
-10
No files found.
checksetup.pl
View file @
1a3c26e6
...
...
@@ -3472,15 +3472,13 @@ if (TableExists("attachstatuses") && TableExists("attachstatusdefs")) {
# 2002-11-24 - bugreport@peshkin.net - bug 147275
#
if
(
Param
(
'makeproductgroups'
))
{
# If makeproductgroups is enabled and group_control_map is empty,
# backward-compatbility usebuggroups-equivalent records should
# be created.
my
$entry
=
Param
(
'useentrygroupdefault'
);
$sth
=
$dbh
->
prepare
(
"SELECT COUNT(*) FROM group_control_map"
);
$sth
->
execute
();
my
(
$mapcnt
)
=
$sth
->
fetchrow_array
();
if
(
$mapcnt
==
0
)
{
# If group_control_map is empty, backward-compatbility
# usebuggroups-equivalent records should be created.
my
$entry
=
Param
(
'useentrygroupdefault'
);
$sth
=
$dbh
->
prepare
(
"SELECT COUNT(*) FROM group_control_map"
);
$sth
->
execute
();
my
(
$mapcnt
)
=
$sth
->
fetchrow_array
();
if
(
$mapcnt
==
0
)
{
# Initially populate group_control_map.
# First, get all the existing products and their groups.
$sth
=
$dbh
->
prepare
(
"SELECT groups.id, products.id, groups.name, "
.
...
...
@@ -3515,7 +3513,6 @@ if (Param('makeproductgroups')) {
}
}
}
}
}
# If you had to change the --TABLE-- definition in any way, then add your
...
...
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