Bug 29570: Simplify for loop
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
69bd39f9ca
commit
dbf8c63cdd
|
|
@ -77,9 +77,9 @@ sub list {
|
|||
|
||||
if ( exists $reserved_params->{_order_by} ) {
|
||||
# _order_by passed, fix if required
|
||||
for ( my $i = 0; $i < scalar @{$reserved_params->{_order_by}}; $i++ ) {
|
||||
$reserved_params->{_order_by}->[$i] =~ s|biblio\.|biblio\.biblioitem\.|g
|
||||
if $reserved_params->{_order_by}->[$i] =~ m/.*(isbn|ean|publisher).*/;
|
||||
for my $p ( @{$reserved_params->{_order_by}} ) {
|
||||
$p =~ s|biblio\.|biblio\.biblioitem\.|g
|
||||
if $p =~ m/.*(isbn|ean|publisher).*/;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue