From 0ee23d67c9ca61ca2d2f31b27a39c021d3d7aade Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 11 Feb 2022 09:15:34 +0100 Subject: [PATCH] Bug 29859: (follow-up) Use iterator instead of as_list Signed-off-by: Fridolin Somers --- opac/opac-memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index 23552594b5..db3795dbf4 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -162,7 +162,7 @@ if ( $action eq 'create' ) { borrower => \%borrower ); $template->param( patron_attribute_classes => GeneratePatronAttributesForm( undef, $attributes ) ); - } elsif ( $libraries->find($borrower{branchcode}) ) { + } elsif ( !$libraries->find($borrower{branchcode}) ) { die "Branchcode not allowed"; # They hack the form } else { -- 2.39.5