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
c1cec451
Commit
c1cec451
authored
Feb 21, 2007
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 371016: Versions are no longer sorted by version-sort
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
e0318906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Version.pm
Bugzilla/Version.pm
+10
-1
No files found.
Bugzilla/Version.pm
View file @
c1cec451
...
...
@@ -21,6 +21,7 @@ package Bugzilla::Version;
use
base
qw(Bugzilla::Object)
;
use
Bugzilla::Install::
Requirements
qw(vers_cmp)
;
use
Bugzilla::
Util
;
use
Bugzilla::
Error
;
...
...
@@ -39,7 +40,9 @@ use constant DB_COLUMNS => qw(
)
;
use
constant
NAME_FIELD
=>
'value'
;
use
constant
LIST_ORDER
=>
NAME_FIELD
;
# This is "id" because it has to be filled in and id is probably the fastest.
# We do a custom sort in new_from_list below.
use
constant
LIST_ORDER
=>
'id'
;
sub
new
{
my
$class
=
shift
;
...
...
@@ -70,6 +73,12 @@ sub new {
return
$class
->
SUPER::
new
(
@_
);
}
sub
new_from_list
{
my
$self
=
shift
;
my
$list
=
$self
->
SUPER::
new_from_list
(
@_
);
return
[
sort
{
vers_cmp
(
lc
(
$a
->
name
),
lc
(
$b
->
name
))
}
@$list
];
}
sub
bug_count
{
my
$self
=
shift
;
my
$dbh
=
Bugzilla
->
dbh
;
...
...
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