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:
parent
eb93c2b2e7
commit
549e0b3068
|
|
@ -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'};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue