diff options
author | Yorhel <git@yorhel.nl> | 2012-09-05 21:32:26 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2012-09-05 21:32:26 +0200 |
commit | e8179a5ec280d57d52460fef3230daa46fe213dc (patch) | |
tree | 5a17747d11947860e43f1054d97284055f8379a4 /lib | |
parent | 02198427d59ae3a577500213314d216d39e6bffd (diff) |
Handler::Releases: Don't sort platform listing on edit page
The filters list the platforms in the order they are present in the
array, which also makes more sense than the odd ordering you get when
sorting on their ID.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Handler/Releases.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index ff434ab6..f0a0707e 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -420,7 +420,7 @@ sub _form { [ static => nolabel => 1, content => sub { h2 mt '_redit_form_platforms'; div class => 'platforms'; - for my $p (sort @{$self->{platforms}}) { + for my $p (@{$self->{platforms}}) { span; input type => 'checkbox', name => 'platforms', value => $p, id => $p, $frm->{platforms} && grep($_ eq $p, @{$frm->{platforms}}) ? (checked => 'checked') : (); |