* Make download-by-type more deterministic when there are multiple

files of the same type.
This commit is contained in:
Eelco Dolstra 2009-10-12 17:07:36 +00:00
parent ee31b6e3df
commit 903ca3b246

View file

@ -156,7 +156,7 @@ sub download_by_type : Chained('build') PathPart('download-by-type') {
unless defined $type && defined $subtype;
(my $product) = $c->stash->{build}->buildproducts->search(
{type => $type, subtype => $subtype});
{type => $type, subtype => $subtype}, {order_by => "productnr"});
notFound($c, "Build doesn't have a build product with type $type/$subtype.")
if !defined $product;