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
51e15329
Commit
51e15329
authored
Sep 28, 2013
by
Imran Chaudhry
Committed by
Frédéric Buclin
Sep 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 798927: An error should be thrown when passing an illegal pronoun
r=LpSolit a=justdave
parent
2d802ebc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Search.pm
Bugzilla/Search.pm
+2
-1
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+7
-0
No files found.
Bugzilla/Search.pm
View file @
51e15329
...
...
@@ -2196,7 +2196,8 @@ sub pronoun {
if
(
$noun
eq
"%qacontact%"
)
{
return
"COALESCE(bugs.qa_contact,0)"
;
}
return
0
;
ThrowUserError
(
'illegal_pronoun'
,
{
pronoun
=>
$noun
});
}
sub
_contact_pronoun
{
...
...
template/en/default/global/user-error.html.tmpl
View file @
51e15329
...
...
@@ -891,6 +891,13 @@
Your group control combination for group "
[% groupname FILTER html %]" is illegal.
[% ELSIF error == "illegal_pronoun" %]
[% title = "Illegal Pronoun" %]
The pronoun you used ([% pronoun FILTER html %]) is illegal. You must use
one of the approved pronouns. Please see
<a href="[% docs_urlbase FILTER html %]query.html#pronouns">Pronoun Substitution</a>
for a complete list.
[% ELSIF error == "illegal_query_name" %]
[% title = "Illegal Search Name" %]
The name of your search cannot contain any of the following characters:
...
...
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