Bug 29859: (follow-up) Use iterator instead of as_list

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-02-11 09:15:34 +01:00 committed by Fridolin Somers
parent 72c69eb4c5
commit 0ee23d67c9
1 changed files with 1 additions and 1 deletions

View File

@ -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 {