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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
16a45539
Commit
16a45539
authored
Dec 23, 2004
by
jake%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 274397 - Editing a saved search should now work even after clicking "Show List" from a bug.
Patch by Colin S. Ogilvie <colin.ogilvie@gmail.com> r=wurblzap, a=justdave
parent
298360bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
buglist.cgi
buglist.cgi
+10
-9
userprefs.cgi
userprefs.cgi
+16
-1
No files found.
buglist.cgi
View file @
16a45539
...
...
@@ -132,10 +132,11 @@ if ($::FORM{'regetlastlist'}) {
$cgi
->
cookie
(
'BUGLIST'
)
||
ThrowUserError
(
"missing_cookie"
);
$order
=
"reuse last sort"
unless
$order
;
my
$bug_id
=
$cgi
->
cookie
(
'BUGLIST'
);
$bug_id
=~
s/:/,/g
;
# set up the params for this new query
$params
=
new
Bugzilla::
CGI
({
bug_id
=>
[
split
(
/:/
,
$cgi
->
cookie
(
'BUGLIST'
))]
,
bug_id
=>
$bug_id
,
order
=>
$order
,
});
}
...
...
@@ -309,13 +310,6 @@ if ($::FORM{'cmdtype'} eq "dorem") {
$params
=
new
Bugzilla::
CGI
(
$::buffer
);
$order
=
$params
->
param
(
'order'
)
||
$order
;
# backward compatibility hack: if the saved query doesn't say which
# form was used to create it, assume it was on the advanced query
# form - see bug 252295
if
(
!
$params
->
param
(
'query_format'
))
{
$params
->
param
(
'query_format'
,
'advanced'
);
$::buffer
=
$params
->
query_string
;
}
}
elsif
(
$::FORM
{
'remaction'
}
eq
"runseries"
)
{
$::buffer
=
LookupSeries
(
$::FORM
{
"series_id"
});
...
...
@@ -418,6 +412,13 @@ elsif (($::FORM{'cmdtype'} eq "doit") && $::FORM{'remtype'}) {
}
}
# backward compatibility hack: if the saved query doesn't say which
# form was used to create it, assume it was on the advanced query
# form - see bug 252295
if
(
!
$params
->
param
(
'query_format'
))
{
$params
->
param
(
'query_format'
,
'advanced'
);
$::buffer
=
$params
->
query_string
;
}
################################################################################
# Column Definition
...
...
userprefs.cgi
View file @
16a45539
...
...
@@ -298,8 +298,23 @@ sub DoPermissions {
sub
DoSavedSearches
()
{
# 2004-12-13 - colin.ogilvie@gmail.com, bug 274397
# Need to work around the possibly missing query_format=advanced
$vars
->
{
'user'
}
=
Bugzilla
->
user
;
$vars
->
{
'queries'
}
=
Bugzilla
->
user
->
queries
;
my
@queries
=
@
{
Bugzilla
->
user
->
queries
};
my
@newqueries
;
foreach
my
$q
(
@queries
)
{
if
(
$q
->
{
'query'
}
!~
/query_format=(advanced|specific)/
)
{
if
(
$q
->
{
'query'
}
=~
/query_format=&/
)
{
$q
->
{
'query'
}
=~
s/query_format=&/query_format=advanced&/
;
}
else
{
$q
->
{
'query'
}
.=
'&query_format=advanced'
;
}
}
push
@newqueries
,
$q
;
}
$vars
->
{
'queries'
}
=
\
@newqueries
;
}
sub
SaveSavedSearches
()
{
...
...
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