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
881bbbd5
Commit
881bbbd5
authored
Mar 15, 2004
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 232491 - try harder to avoid parameterless searches (either saved or…
Bug 232491 - try harder to avoid parameterless searches (either saved or otherwise.) Patch by gerv; r,a=myk.
parent
55f1c210
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
buglist.cgi
buglist.cgi
+8
-2
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+1
-3
No files found.
buglist.cgi
View file @
881bbbd5
...
...
@@ -179,7 +179,11 @@ sub LookupNamedQuery {
my
$qname
=
SqlQuote
(
$name
);
SendSQL
(
"SELECT query FROM namedqueries WHERE userid = $userid AND name = $qname"
);
my
$result
=
FetchOneColumn
();
$result
||
ThrowUserError
(
"missing_query"
,
{
'queryname'
=>
$name
});
defined
(
$result
)
||
ThrowUserError
(
"missing_query"
,
{
'queryname'
=>
$name
});
$result
||
ThrowUserError
(
"buglist_parameters_required"
,
{
'queryname'
=>
$name
});
return
$result
;
}
...
...
@@ -331,8 +335,10 @@ elsif (($::FORM{'cmdtype'} eq "doit") && $::FORM{'remtype'}) {
$name
!~
/[<>&]/
||
ThrowUserError
(
"illegal_query_name"
);
my
$qname
=
SqlQuote
(
$name
);
$::FORM
{
'newquery'
}
||
ThrowUserError
(
"buglist_parameters_required"
,
{
'queryname'
=>
$name
});
my
$qbuffer
=
SqlQuote
(
$::FORM
{
'newquery'
});
my
$tofooter
=
1
;
$vars
->
{
'message'
}
=
"buglist_new_named_query"
;
...
...
template/en/default/global/user-error.html.tmpl
View file @
881bbbd5
...
...
@@ -118,9 +118,7 @@
[% ELSIF error == "buglist_parameters_required" %]
[% title = "Parameters Required" %]
[% url = "query.cgi" %]
[% link = "Please use the search form to specify some search criteria." %]
This script is not meant to be invoked without any search terms.
You may not search, or create saved searches, without any search terms.
[% ELSIF error == "bugs_not_changed" %]
[% title = BLOCK %][% terms.Bugs %] Not Changed[% END %]
...
...
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