diff options
author | lpsolit%gmail.com <> | 2006-05-19 04:40:54 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-05-19 04:40:54 +0000 |
commit | 232d08fe800c1c36a9bb74953eeac2f4a2d188c3 (patch) | |
tree | 8a2449cde56ac7350bb45daa724d73064e5c2706 /globals.pl | |
parent | 157112a527273a0010b23ded67856d671dd757f0 (diff) | |
download | bugs-232d08fe800c1c36a9bb74953eeac2f4a2d188c3.tar bugs-232d08fe800c1c36a9bb74953eeac2f4a2d188c3.tar.gz bugs-232d08fe800c1c36a9bb74953eeac2f4a2d188c3.tar.bz2 bugs-232d08fe800c1c36a9bb74953eeac2f4a2d188c3.tar.xz bugs-232d08fe800c1c36a9bb74953eeac2f4a2d188c3.zip |
Bug 337055: Move AnyDefaultGroups() from globals.pl into process_bug.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/globals.pl b/globals.pl index ad6cfd761..4798c2b49 100644 --- a/globals.pl +++ b/globals.pl @@ -185,25 +185,6 @@ sub GetVersionTable { $::VersionTableLoaded = 1; } -# This function checks if there are any default groups defined. -# If so, then groups may have to be changed when bugs move from -# one bug to another. -sub AnyDefaultGroups { - return $::CachedAnyDefaultGroups if defined($::CachedAnyDefaultGroups); - my $dbh = Bugzilla->dbh; - PushGlobalSQLState(); - SendSQL("SELECT 1 FROM group_control_map, groups WHERE " . - "groups.id = group_control_map.group_id " . - "AND isactive != 0 AND " . - "(membercontrol = " . CONTROLMAPDEFAULT . - " OR othercontrol = " . CONTROLMAPDEFAULT . - ") " . $dbh->sql_limit(1)); - $::CachedAnyDefaultGroups = MoreSQLData(); - FetchSQLData(); - PopGlobalSQLState(); - return $::CachedAnyDefaultGroups; -} - sub DBID_to_name { my ($id) = (@_); return "__UNKNOWN__" if !defined $id; |