Bug 24367: Resolve warn Argument available is not numeric in delete
Argument "available" isn't numeric in delete at /usr/share/koha/C4/Search.pm line 1480. The construction delete array[string] simply does not work. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
76a4753dfe
commit
c801ea3c69
1 changed files with 1 additions and 1 deletions
|
@ -1477,7 +1477,7 @@ sub buildQuery {
|
|||
if ( @limits ) {
|
||||
if ( grep { $_ eq 'available' } @limits ) {
|
||||
$q .= q| and ( (allrecords,AlwaysMatches='') and (not-onloan-count,st-numeric >= 1) and (lost,st-numeric=0) )|;
|
||||
delete $limits['available'];
|
||||
@limits = grep {!/^available$/} @limits;
|
||||
}
|
||||
$q .= ' and '.join(' and ', @limits) if @limits;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue