Changeset 118
- Timestamp:
- 12/13/10 00:18:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Distrib.pm
r114 r118 36 36 $rs->search(undef, { order_by => ['name'] })->all ]; 37 37 } 38 $rs = $rs->search(name => $distribution)->search_related('Release'); 38 $rs = $rs->search({ 39 -or => [ 40 { name => $distribution }, 41 { shortname => $distribution }, 42 ], 43 })->search_related('Release'); 39 44 if (!$release) { 40 45 return $c->stash->{xmlrpc} = [ map { $_->version } … … 87 92 { 88 93 $distrib->{distribution} 89 ? (name => $distrib->{distribution}) 94 ? (-or => [ 95 { name => $distrib->{distribution} }, 96 { shortname => $distrib->{distribution} }, 97 ], 98 ) 90 99 : () 91 100 },
Note: See TracChangeset
for help on using the changeset viewer.