From 0ec4c9d8a6946fd89b3f56a0343182cf48000ef0 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Thu, 10 Feb 2011 16:49:20 +0000 Subject: [PATCH] Bug 4263: Fix subfield ordering broken by earlier patch Content-Type: text/plain; charset="utf-8" Restores alpha sorting of item subfields in add/edit screen --- 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}){ } } } +@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.7.4