Bug 42553: (QA Follow-up) tidy preferences.pl

Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Andrew Fuerste Henry 2026-08-04 13:25:50 +00:00 committed by Pedro Amorim
parent eb93c2b2e7
commit 549e0b3068
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 2 additions and 4 deletions

View File

@ -204,10 +204,8 @@ sub _get_chunk {
} elsif ( $options{'multiple_sortable'} ) {
if ( ref( $options{'multiple_sortable'} ) eq '' ) {
if ( $options{'multiple_sortable'} eq 'authval' && $options{'source'} ) {
$options{'multiple_sortable'} = {
map { $_->authorised_value => $_->lib }
Koha::AuthorisedValues->search( { category => $options{'source'} } )->as_list
};
$options{'multiple_sortable'} = { map { $_->authorised_value => $_->lib }
Koha::AuthorisedValues->search( { category => $options{'source'} } )->as_list };
} else {
die 'Unrecognized source for multiple_sortable: ' . $options{'multiple_sortable'};
}