Bug 4263: Fix subfield ordering broken by earlier patch

Restores alpha sorting of item subfields in add/edit screen

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ea2ace41a4)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Colin Campbell 2011-02-10 15:13:12 -05:00 committed by Chris Nighswonger
parent d9bef52c4b
commit 7170eb6e36
1 changed files with 1 additions and 0 deletions

View File

@ -612,6 +612,7 @@ foreach my $tag ( keys %{$tagslib}){
}
}
}
@loop_data = sort {$a->{subfield} cmp $b->{subfield} } @loop_data;
# what's the next op ? it's what we are not in : an add if we're editing, otherwise, and edit.
$template->param( title => $record->title() ) if ($record ne "-1");