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
2cb3440a
Commit
2cb3440a
authored
Sep 19, 2012
by
Sunil Joshi
Committed by
Frédéric Buclin
Sep 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 308709: Misleading confirmation when entering an invalid sort key for a field value
r/a=LpSolit
parent
533d024f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Choice.pm
Bugzilla/Field/Choice.pm
+1
-1
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+3
-3
No files found.
Bugzilla/Field/Choice.pm
View file @
2cb3440a
...
...
@@ -256,7 +256,7 @@ sub _check_sortkey {
return
0
if
!
$value
;
# Store for the error message in case detaint_natural clears it.
my
$orig_value
=
$value
;
detaint_natural
(
$value
)
(
detaint_natural
(
$value
)
&&
$value
<=
MAX_SMALLINT
)
||
ThrowUserError
(
'fieldvalue_sortkey_invalid'
,
{
sortkey
=>
$orig_value
,
field
=>
$invocant
->
field
});
...
...
template/en/default/global/user-error.html.tmpl
View file @
2cb3440a
...
...
@@ -577,9 +577,9 @@
[% ELSIF error == "fieldvalue_sortkey_invalid" %]
[% title = "Invalid Field Value Sortkey" %]
The sortkey '[% sortkey FILTER html %]' for the
[%+ field.description FILTER html %] field
is not a valid
(positive) number
.
The sortkey '[% sortkey FILTER html %]' for the
[%+ field.description FILTER html %] field
must be an integer
between 0 and [% constants.MAX_SMALLINT FILTER none %]
.
[% ELSIF error == "fieldvalue_still_has_bugs" %]
[% title = "You Cannot Delete This Field Value" %]
...
...
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