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
c658f1b0
Commit
c658f1b0
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
526f3838
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 @
c658f1b0
...
...
@@ -257,7 +257,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 @
c658f1b0
...
...
@@ -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