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
96998d6a
Commit
96998d6a
authored
Jul 22, 2004
by
jouni%heikniemi.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 98751: Make it easier to update a stored query.
r=gerv, a=justdave
parent
bf43cc08
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
buglist.cgi
buglist.cgi
+4
-0
query.cgi
query.cgi
+3
-0
list.html.tmpl
template/en/default/list/list.html.tmpl
+8
-2
knob.html.tmpl
template/en/default/search/knob.html.tmpl
+13
-0
No files found.
buglist.cgi
View file @
96998d6a
...
...
@@ -902,6 +902,10 @@ if ($dotweak) {
}
}
# If we're editing a stored query, use the existing query name as default for
# the "Remember search as" field.
$vars
->
{
'defaultsavename'
}
=
$cgi
->
param
(
'query_based_on'
);
################################################################################
# HTTP Header Generation
...
...
query.cgi
View file @
96998d6a
...
...
@@ -395,6 +395,9 @@ if (($::FORM{'query_format'} || $::FORM{'format'} || "") eq "create-series") {
$vars
->
{
'category'
}
=
Bugzilla::Chart::
getVisibleSeries
();
}
$vars
->
{
'known_name'
}
=
$cgi
->
param
(
'known_name'
);
# Add in the defaults.
$vars
->
{
'default'
}
=
\%
default
;
...
...
template/en/default/list/list.html.tmpl
View file @
96998d6a
...
...
@@ -22,6 +22,7 @@
[%# INTERFACE:
# searchtype: string. Type of search - either "series", "saved" or undef.
# ...
# defaultsavename: string. The default name for saving the query.
#%]
[%############################################################################%]
...
...
@@ -159,7 +160,11 @@
[% END %]
<td valign="middle">
<a href="query.cgi?[% urlquerypart FILTER html %]">Edit Search</a>
[% editqueryname = searchname OR defaultsavename OR '' %]
<a href="query.cgi?[% urlquerypart FILTER html %]
[% IF editqueryname != '' %]&known_name=
[% editqueryname FILTER url_quote %]
[% END %]">Edit Search</a>
</td>
[% IF searchtype == "saved" %]
...
...
@@ -179,7 +184,8 @@
value="[% urlquerypart FILTER html %]">
<input type="hidden" name="cmdtype" value="doit">
<input type="hidden" name="remtype" value="asnamed">
<input type="text" name="newqueryname" size="20">
<input type="text" name="newqueryname" size="20"
value="[% defaultsavename FILTER html %]">
</form>
</td>
[% END %]
...
...
template/en/default/search/knob.html.tmpl
View file @
96998d6a
...
...
@@ -21,6 +21,15 @@
# Jouni Heikniemi <jouni@heikniemi.net>
#%]
[%# INTERFACE:
# (incomplete!)
# ...
# known_name: string. Possibly known stored name for the query being
# edited. This value is just passed through in a
# hidden field.
#%]
[% PROCESS global/variables.none.tmpl %]
[%# This is not necessary for English templates, but useful for localisers. %]
...
...
@@ -46,6 +55,10 @@
<p>
<input type="submit" value="[% button_name FILTER html %]">
[% IF known_name %]
<input type="hidden" name="query_based_on"
value="[% known_name FILTER html %]">
[% END %]
</p>
<p>
...
...
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