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
014b25fe
Commit
014b25fe
authored
Jan 19, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 276840 : Move $::defaultqueryname out of globals.pl into Bugzilla/Constants.pm
Patch by Max K-A <mkanat@kerio.com> r=vladd a=justdave
parent
47552954
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
Constants.pm
Bugzilla/Constants.pm
+5
-0
buglist.cgi
buglist.cgi
+1
-2
globals.pl
globals.pl
+0
-2
query.cgi
query.cgi
+4
-4
No files found.
Bugzilla/Constants.pm
View file @
014b25fe
...
...
@@ -63,6 +63,7 @@ use base qw(Exporter);
GROUP_VISIBLE
DEFAULT_COLUMN_LIST
DEFAULT_QUERY_NAME
)
;
@
Bugzilla::Constants::
EXPORT_OK
=
qw(contenttypes)
;
...
...
@@ -207,4 +208,8 @@ use constant DEFAULT_COLUMN_LIST => (
"bug_status"
,
"resolution"
,
"short_short_desc"
);
# Used by query.cgi and buglist.cgi as the named-query name
# for the default settings.
use
constant
DEFAULT_QUERY_NAME
=>
'(Default query)'
;
1
;
buglist.cgi
View file @
014b25fe
...
...
@@ -44,7 +44,6 @@ require "CGI.pl";
use
vars
qw($db_name
@components
$defaultqueryname
@legal_keywords
@legal_platform
@legal_priority
...
...
@@ -340,7 +339,7 @@ elsif (($::FORM{'cmdtype'} eq "doit") && $::FORM{'remtype'}) {
if
(
$::FORM
{
'remtype'
}
eq
"asdefault"
)
{
Bugzilla
->
login
(
LOGIN_REQUIRED
);
my
$userid
=
Bugzilla
->
user
->
id
;
my
$qname
=
SqlQuote
(
$::defaultqueryname
);
my
$qname
=
SqlQuote
(
DEFAULT_QUERY_NAME
);
my
$qbuffer
=
SqlQuote
(
$::buffer
);
SendSQL
(
"LOCK TABLES namedqueries WRITE"
);
...
...
globals.pl
View file @
014b25fe
...
...
@@ -41,7 +41,6 @@ use Bugzilla::BugMail;
sub
globals_pl_sillyness
{
my
$zz
;
$zz
=
@
main::
default_column_list
;
$zz
=
$
main::
defaultqueryname
;
$zz
=
@
main::
enterable_products
;
$zz
=
%
main::
keywordsbyname
;
$zz
=
@
main::
legal_bug_status
;
...
...
@@ -95,7 +94,6 @@ $::ENV{'PATH'} = '';
$::SIG
{
TERM
}
=
'IGNORE'
;
$::SIG
{
PIPE
}
=
'IGNORE'
;
$::defaultqueryname
=
"(Default query)"
;
# This string not exposed in UI
$::unconfirmedstate
=
"UNCONFIRMED"
;
# The following subroutine is for debugging purposes only.
...
...
query.cgi
View file @
014b25fe
...
...
@@ -76,7 +76,7 @@ if ($userid) {
}
}
if
(
defined
$cgi
->
cookie
(
'DEFAULTQUERY'
))
{
push
(
@oldquerycookies
,
[
$::defaultqueryname
,
'DEFAULTQUERY'
,
push
(
@oldquerycookies
,
[
DEFAULT_QUERY_NAME
,
'DEFAULTQUERY'
,
$cgi
->
cookie
(
'DEFAULTQUERY'
)]);
}
if
(
@oldquerycookies
)
{
...
...
@@ -104,7 +104,7 @@ if ($userid) {
if
(
$::FORM
{
'nukedefaultquery'
})
{
if
(
$userid
)
{
SendSQL
(
"DELETE FROM namedqueries "
.
"WHERE userid = $userid AND name =
'$::defaultqueryname'"
);
"WHERE userid = $userid AND name =
"
.
SqlQuote
(
DEFAULT_QUERY_NAME
)
);
}
$::buffer
=
""
;
}
...
...
@@ -112,7 +112,7 @@ if ($::FORM{'nukedefaultquery'}) {
my
$userdefaultquery
;
if
(
$userid
)
{
SendSQL
(
"SELECT query FROM namedqueries "
.
"WHERE userid = $userid AND name =
'$::defaultqueryname'"
);
"WHERE userid = $userid AND name =
"
.
SqlQuote
(
DEFAULT_QUERY_NAME
)
);
$userdefaultquery
=
FetchOneColumn
();
}
...
...
@@ -391,7 +391,7 @@ $default{'charts'} = \@charts;
if
(
$userid
)
{
my
@namedqueries
;
SendSQL
(
"SELECT name FROM namedqueries "
.
"WHERE userid = $userid AND name !=
'$::defaultqueryname' "
.
"WHERE userid = $userid AND name !=
"
.
SqlQuote
(
DEFAULT_QUERY_NAME
)
.
"ORDER BY name"
);
while
(
MoreSQLData
())
{
push
(
@namedqueries
,
FetchOneColumn
());
...
...
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