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
95b84377
Commit
95b84377
authored
May 13, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 236779: Add UI for changing "linkinfooter" flag for saved searches
r=gerv,preed a=justdave
parent
a8de93fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
9 deletions
+54
-9
prefs.html.tmpl
template/en/default/account/prefs/prefs.html.tmpl
+1
-1
saved-searches.html.tmpl
template/en/default/account/prefs/saved-searches.html.tmpl
+32
-4
useful-links.html.tmpl
template/en/default/global/useful-links.html.tmpl
+5
-3
userprefs.cgi
userprefs.cgi
+16
-1
No files found.
template/en/default/account/prefs/prefs.html.tmpl
View file @
95b84377
...
...
@@ -53,7 +53,7 @@
{ name => "email", description => "Email settings",
saveable => "1" },
{ name => "saved-searches", description => "Saved searches",
saveable => "
0
" },
saveable => "
1
" },
{ name => "permissions", description => "Permissions",
saveable => "0" } ] %]
...
...
template/en/default/account/prefs/saved-searches.html.tmpl
View file @
95b84377
...
...
@@ -22,13 +22,41 @@
<p>Your saved searches are as follows:</p>
<blockquote>
<table cellpadding="3">
<table border="1" cellpadding="3">
<tr>
<th>
Show in <br>
Footer
</th>
<th>
Search
</th>
<th>
Run
</th>
<th>
Edit
</th>
<th>
Forget
</th>
</tr>
[% FOREACH q = queries %]
<tr>
<td>[% q.name FILTER html %]:</td>
<td>
<a href="buglist.cgi?[% q.query FILTER html %]">Run</a> |
<a href="query.cgi?[% q.query FILTER html %]">Edit</a> |
<input type="checkbox"
name="linkinfooter_[% q.name FILTER html %]"
value="1"
[% " checked" IF q.linkinfooter %]>
</td>
<td>[% q.name FILTER html %]</td>
<td>
<a href="buglist.cgi?[% q.query FILTER html %]">Run</a>
</td>
<td>
<a href="query.cgi?[% q.query FILTER html %]">Edit</a>
</td>
<td>
<a href="buglist.cgi?cmdtype=dorem&remaction=forget&namedcmd=
[% q.name FILTER html %]">Forget</a>
</td>
...
...
template/en/default/global/useful-links.html.tmpl
View file @
95b84377
...
...
@@ -106,9 +106,11 @@
[% END %]
[% FOREACH q = user.queries %]
[% " | " IF print_pipe %]
<a href="buglist.cgi?cmdtype=runnamed&namedcmd=[% q.name FILTER url_quote %]"><nobr>[% q.name FILTER html %]</nobr></a>
[% print_pipe = 1 %]
[% IF q.linkinfooter %]
[% " | " IF print_pipe %]
<a href="buglist.cgi?cmdtype=runnamed&namedcmd=[% q.name FILTER url_quote %]"><nobr>[% q.name FILTER html %]</nobr></a>
[% print_pipe = 1 %]
[% END %]
[% END %]
</td>
</tr>
...
...
userprefs.cgi
View file @
95b84377
...
...
@@ -301,7 +301,21 @@ sub DoSavedSearches() {
$vars
->
{
'queries'
}
=
Bugzilla
->
user
->
queries
;
}
# No SaveSavedSearches() because this panel has no changeable fields (yet).
sub
SaveSavedSearches
()
{
my
$cgi
=
Bugzilla
->
cgi
;
my
$dbh
=
Bugzilla
->
dbh
;
my
@queries
=
@
{
Bugzilla
->
user
->
queries
};
my
$sth
=
$dbh
->
prepare
(
"UPDATE namedqueries SET linkinfooter = ?
WHERE userid = ?
AND name = ?"
);
foreach
my
$q
(
@queries
)
{
my
$linkinfooter
=
defined
(
$cgi
->
param
(
"linkinfooter_$q->{'name'}"
))
?
1
:
0
;
$sth
->
execute
(
$linkinfooter
,
$userid
,
$q
->
{
'name'
});
}
Bugzilla
->
user
->
flush_queries_cache
;
}
###############################################################################
...
...
@@ -340,6 +354,7 @@ SWITCH: for ($current_tab_name) {
last
SWITCH
;
};
/^saved-searches$/
&&
do
{
SaveSavedSearches
()
if
$cgi
->
param
(
'dosave'
);
DoSavedSearches
();
last
SWITCH
;
};
...
...
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