[Koha-patches] [PATCH] [SIGNED-OFF] Bug 4263: Fix subfield ordering broken by earlier patch
Nicole Engard
nengard at bywatersolutions.com
Thu Feb 10 21:13:12 CET 2011
From: Colin Campbell <colin.campbell at ptfs-europe.com>
Restores alpha sorting of item subfields in add/edit screen
Signed-off-by: Nicole Engard <nengard at bywatersolutions.com>
---
cataloguing/additem.pl | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl
index 791907f..c5dd7d9 100755
--- a/cataloguing/additem.pl
+++ b/cataloguing/additem.pl
@@ -612,6 +612,7 @@ foreach my $tag ( keys %{$tagslib}){
}
}
}
+ at 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");
--
1.5.6.5
More information about the Koha-patches
mailing list