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
877a6c19
Commit
877a6c19
authored
Mar 02, 2006
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 328434: Move GroupIsActive into post_bug.cgi
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=justdave
parent
c67f8c51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
globals.pl
globals.pl
+0
-14
post_bug.cgi
post_bug.cgi
+20
-0
No files found.
globals.pl
View file @
877a6c19
...
...
@@ -526,20 +526,6 @@ sub GroupIdToName {
return
$name
;
}
# Determines whether or not a group is active by checking
# the "isactive" column for the group in the "groups" table.
# Note: This function selects groups by id rather than by name.
sub
GroupIsActive
{
my
(
$groupid
)
=
(
@_
);
$groupid
||=
0
;
PushGlobalSQLState
();
SendSQL
(
"SELECT isactive FROM groups WHERE id=$groupid"
);
my
$isactive
=
FetchOneColumn
();
PopGlobalSQLState
();
return
$isactive
;
}
# Determines if the given bug_status string represents an "Opened" bug. This
# routine ought to be parameterizable somehow, as people tend to introduce
# new states into Bugzilla.
...
...
post_bug.cgi
View file @
877a6c19
...
...
@@ -55,6 +55,26 @@ my $dbh = Bugzilla->dbh;
my
$template
=
Bugzilla
->
template
;
my
$vars
=
{};
######################################################################
# Subroutines
######################################################################
# Determines whether or not a group is active by checking
# the "isactive" column for the group in the "groups" table.
# Note: This function selects groups by id rather than by name.
sub
GroupIsActive
{
my
(
$group_id
)
=
@_
;
$group_id
||=
0
;
detaint_natural
(
$group_id
);
my
(
$is_active
)
=
Bugzilla
->
dbh
->
selectrow_array
(
"SELECT isactive FROM groups WHERE id = ?"
,
undef
,
$group_id
);
return
$is_active
;
}
######################################################################
# Main Script
######################################################################
# do a match on the fields if applicable
&
Bugzilla::User::
match_field
(
$cgi
,
{
...
...
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