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
22212e51
Commit
22212e51
authored
Oct 20, 2005
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 313008 Lists of products, milestones, etc... should be sorted
Patch by Joel Peshkin <bugreport@peshkin.net> r=lpsolit, a=justdave
parent
89222752
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Classification.pm
Bugzilla/Classification.pm
+2
-1
Product.pm
Bugzilla/Product.pm
+6
-3
No files found.
Bugzilla/Classification.pm
View file @
22212e51
...
...
@@ -100,7 +100,8 @@ sub products {
if
(
!
$self
->
{
'products'
})
{
my
$product_ids
=
$dbh
->
selectcol_arrayref
(
q{
SELECT id FROM products
WHERE classification_id = ?}
,
undef
,
$self
->
id
);
WHERE classification_id = ?
ORDER BY name}
,
undef
,
$self
->
id
);
my
@products
;
foreach
my
$product_id
(
@$product_ids
)
{
...
...
Bugzilla/Product.pm
View file @
22212e51
...
...
@@ -100,7 +100,8 @@ sub components {
if
(
!
defined
$self
->
{
components
})
{
my
$ids
=
$dbh
->
selectcol_arrayref
(
q{
SELECT id FROM components
WHERE product_id = ?}
,
undef
,
$self
->
id
);
WHERE product_id = ?
ORDER BY name}
,
undef
,
$self
->
id
);
my
@components
;
foreach
my
$id
(
@$ids
)
{
...
...
@@ -145,7 +146,8 @@ sub versions {
if
(
!
defined
$self
->
{
versions
})
{
my
$values
=
$dbh
->
selectcol_arrayref
(
q{
SELECT value FROM versions
WHERE product_id = ?}
,
undef
,
$self
->
id
);
WHERE product_id = ?
ORDER BY value}
,
undef
,
$self
->
id
);
my
@versions
;
foreach
my
$value
(
@$values
)
{
...
...
@@ -163,7 +165,8 @@ sub milestones {
if
(
!
defined
$self
->
{
milestones
})
{
my
$values
=
$dbh
->
selectcol_arrayref
(
q{
SELECT value FROM milestones
WHERE product_id = ?}
,
undef
,
$self
->
id
);
WHERE product_id = ?
ORDER BY sortkey}
,
undef
,
$self
->
id
);
my
@milestones
;
foreach
my
$value
(
@$values
)
{
...
...
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