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
bb587d71
Commit
bb587d71
authored
Jul 22, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 238544: Emit appropriate error if content and matches are used in
invalid search combinations. r=jouni a=justdave
parent
96998d6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Search.pm
Bugzilla/Search.pm
+6
-0
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+6
-0
No files found.
Bugzilla/Search.pm
View file @
bb587d71
...
...
@@ -478,6 +478,9 @@ sub init {
push
(
@fields
,
$select_term
);
}
},
"^content,"
=>
sub
{
ThrowUserError
(
"search_content_without_matches"
);
},
"^commenter,(?:equals|anyexact),(%\\w+%)"
=>
sub
{
my
$match
=
pronoun
(
$1
,
$user
);
my
$chartseq
=
$chartid
;
...
...
@@ -828,6 +831,9 @@ sub init {
",lessthan"
=>
sub
{
$term
=
"$ff < $q"
;
},
",matches"
=>
sub
{
ThrowUserError
(
"search_content_without_matches"
);
},
",greaterthan"
=>
sub
{
$term
=
"$ff > $q"
;
},
...
...
template/en/default/global/user-error.html.tmpl
View file @
bb587d71
...
...
@@ -691,6 +691,12 @@
[% title = "Access Denied" %]
You do not have the permissions necessary to run a sanity check.
[% ELSIF error == "search_content_without_matches" %]
[% title = "Illegal Search" %]
The "content" field can only be used with "matches" search
and the "matches" search can only be used with the "content"
field.
[% ELSIF error == "series_already_exists" %]
[% title = "Series Already Exists" %]
A series named <em>[% series.category FILTER html %] /
...
...
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