Bug 29859: (follow-up) Use iterator instead of as_list
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
72c69eb4c5
commit
0ee23d67c9
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue