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
50b24dac
Commit
50b24dac
authored
Sep 20, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
160476 - boolean chart addition doesn't keep query template format. Patch by gerv; r=myk.
parent
2f9bd287
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
query.cgi
query.cgi
+8
-1
search-advanced.html.tmpl
template/en/default/search/search-advanced.html.tmpl
+3
-1
search.html.tmpl
template/en/default/search/search.html.tmpl
+3
-1
No files found.
query.cgi
View file @
50b24dac
...
...
@@ -362,8 +362,15 @@ $default{'querytype'} = $deforder || 'Importance';
# Add in the defaults.
$vars
->
{
'default'
}
=
\%
default
;
$vars
->
{
'format'
}
=
$::FORM
{
'format'
};
# Generate and return the UI (HTML page) from the appropriate template.
my
$format
=
GetFormat
(
"search/search"
,
$::FORM
{
'format'
},
$::FORM
{
'ctype'
});
# If we submit back to ourselves (for e.g. boolean charts), we need to
# preserve format information; hence query_format taking priority over
# format.
my
$format
=
GetFormat
(
"search/search"
,
$::FORM
{
'query_format'
}
||
$::FORM
{
'format'
},
$::FORM
{
'ctype'
});
print
"Content-Type: $format->{'ctype'}\n\n"
;
$template
->
process
(
$format
->
{
'template'
},
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
template/en/default/search/search-advanced.html.tmpl
View file @
50b24dac
...
...
@@ -33,7 +33,9 @@
[% button_name = "Search" %]
<form method="get" action="buglist.cgi" name="queryform">
[%# If we resubmit to ourselves, we need to know if we are using a format. %]
<input type="hidden" name="query_format" value="[% format %]">
[% PROCESS search/form.html.tmpl %]
[% PROCESS search/knob.html.tmpl %]
...
...
template/en/default/search/search.html.tmpl
View file @
50b24dac
...
...
@@ -33,7 +33,9 @@
[% button_name = "Search" %]
<form method="get" action="buglist.cgi" name="queryform">
[%# If we resubmit to ourselves, we need to know if we are using a format. %]
<input type="hidden" name="query_format" value="[% format %]">
[% PROCESS search/form.html.tmpl %]
[% PROCESS search/knob.html.tmpl %]
...
...
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