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

Tomás Cohen Arazi <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Tomás Cohen Arazi <[email protected]> ---
(In reply to Nick Clemens (kidclamp) from comment #4)
> Instead of fetching the patron just to compare borrowernumber, why not:
> my $hold = Koha::Holds->find({ reserve_id => $reserve_id, borrowernumber =>
> $borrowernumber });
> 
> If the borrowernumebr doesn't match, we don't find a hold, can't cancel?

I used this pattern a lot, and I like how concise it is:

```
my $hold = $patron->holds->find( $hold_id );
```

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to