From 67c87090f468887088efec279beb015d8016800b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 Sep 2016 16:45:22 +0100 Subject: [PATCH] [SIGNED-OFF]Bug 17285: (15758 follow-up) Fix advanced editor Little mistake from df97814, $branches is a hash { branchcode => branchname } Test plan: Edit a biblio with the advanced editor Signed-off-by: Hector Castro The advanced editor works as expected --- svc/cataloguing/framework | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/cataloguing/framework b/svc/cataloguing/framework index b0099e8..4880b8a 100755 --- a/svc/cataloguing/framework +++ b/svc/cataloguing/framework @@ -32,7 +32,7 @@ my $authorised_values = {}; my $branches = { map { $_->branchcode => $_->branchname } Koha::Libraries->search_filtered }; $authorised_values->{branches} = []; foreach my $thisbranch ( sort keys %$branches ) { - push @{ $authorised_values->{branches} }, { value => $thisbranch, lib => $branches->{$thisbranch}->{'branchname'} }; + push @{ $authorised_values->{branches} }, { value => $thisbranch, lib => $branches->{$thisbranch} }; } $authorised_values->{itemtypes} = [ $schema->resultset( "Itemtype" )->search( undef, { -- 1.7.10.4