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
6377a5d7
Commit
6377a5d7
authored
Jul 06, 2006
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 232705: FlagType::normalize() not used; remove it - Patch by Frédéric Buclin…
Bug 232705: FlagType::normalize() not used; remove it - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
parent
07447130
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
49 deletions
+0
-49
FlagType.pm
Bugzilla/FlagType.pm
+0
-49
No files found.
Bugzilla/FlagType.pm
View file @
6377a5d7
...
@@ -428,55 +428,6 @@ sub validate {
...
@@ -428,55 +428,6 @@ sub validate {
}
}
}
}
=pod
=over
=item C<normalize(@ids)>
Given a list of flag types, checks its flags to make sure they should
still exist after a change to the inclusions/exclusions lists.
=back
=cut
sub
normalize
{
# A list of IDs of flag types to normalize.
my
(
@ids
)
=
@_
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$ids
=
join
(
", "
,
@ids
);
# Check for flags whose product/component is no longer included.
my
$flag_ids
=
$dbh
->
selectcol_arrayref
(
"
SELECT flags.id
FROM (flags INNER JOIN bugs ON flags.bug_id = bugs.bug_id)
LEFT OUTER JOIN flaginclusions AS i
ON (flags.type_id = i.type_id
AND (bugs.product_id = i.product_id OR i.product_id IS NULL)
AND (bugs.component_id = i.component_id OR i.component_id IS NULL))
WHERE flags.type_id IN ($ids)
AND i.type_id IS NULL"
);
foreach
my
$flag_id
(
@$flag_ids
)
{
Bugzilla::Flag::
clear
(
$flag_id
);
}
$flag_ids
=
$dbh
->
selectcol_arrayref
(
"
SELECT flags.id
FROM flags, bugs, flagexclusions AS e
WHERE flags.type_id IN ($ids)
AND flags.bug_id = bugs.bug_id
AND flags.type_id = e.type_id
AND (bugs.product_id = e.product_id OR e.product_id IS NULL)
AND (bugs.component_id = e.component_id OR e.component_id IS NULL)"
);
foreach
my
$flag_id
(
@$flag_ids
)
{
Bugzilla::Flag::
clear
(
$flag_id
);
}
}
######################################################################
######################################################################
# Private Functions
# Private Functions
######################################################################
######################################################################
...
...
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