[Koha-bugs] [Bug 15516] Allow to place a hold on first available item from a group of titles

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 12 06:19:50 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15516

--- Comment #470 from David Cook <dcook at prosentient.com.au> ---
Comment on attachment 162078
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162078
Bug 15516: Relevant controller changes and tests

Review of attachment 162078:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15516&attachment=162078)
-----------------------------------------------------------------

::: Koha/Holds.pm
@@ +213,5 @@
> +
> +sub count_holds {
> +    my ( $self, $search_params ) = @_;
> +
> +    $search_params = {

These $search_params lines redefine the variable instead of updating the
variable. This means that you end up selecting all holds and not just the holds
for particular criteria (like an individual patron).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list