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
6efc4495
Commit
6efc4495
authored
Mar 02, 2006
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 328436: Move BugInGroupId from globals.pl to process_bug.cgi
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=justdave
parent
743a3c34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
globals.pl
globals.pl
+0
-12
process_bug.cgi
process_bug.cgi
+15
-0
No files found.
globals.pl
View file @
6efc4495
...
...
@@ -487,18 +487,6 @@ sub get_legal_field_values {
return
@$result_ref
;
}
sub
BugInGroupId
{
my
(
$bugid
,
$groupid
)
=
(
@_
);
PushGlobalSQLState
();
SendSQL
(
"SELECT CASE WHEN bug_id != 0 THEN 1 ELSE 0 END
FROM bug_group_map
WHERE bug_id = $bugid
AND group_id = $groupid"
);
my
$bugingroup
=
FetchOneColumn
();
PopGlobalSQLState
();
return
$bugingroup
;
}
sub
GroupIdToName
{
my
(
$groupid
)
=
(
@_
);
PushGlobalSQLState
();
...
...
process_bug.cgi
View file @
6efc4495
...
...
@@ -86,6 +86,21 @@ my $vars = {};
my
$requiremilestone
=
0
;
######################################################################
# Subroutines
######################################################################
sub
BugInGroupId
{
my
(
$bug_id
,
$group_id
)
=
@_
;
detaint_natural
(
$bug_id
);
detaint_natural
(
$group_id
);
my
(
$in_group
)
=
Bugzilla
->
dbh
->
selectrow_array
(
"SELECT CASE WHEN bug_id != 0 THEN 1 ELSE 0 END
FROM bug_group_map
WHERE bug_id = ? AND group_id = ?"
,
undef
,
(
$bug_id
,
$group_id
));
return
$in_group
;
}
######################################################################
# Begin Data/Security Validation
######################################################################
...
...
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