[Koha-bugs] [Bug 29168] Only show "Request article" if allowed on the detail view

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 4 12:44:33 CET 2021


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

--- Comment #15 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #14)
> This is getting complicated. I think it should be simplified.
> 
> Isn't the following correct/enough?
> 
> if ( $patron && $patron->can_request_article ) {
>     $artreqpossible = $biblio->can_article_request( $patron );
> } elsif ( $itemtype ) {
>     $artreqpossible = $itemtype->may_article_request
> }

It looks similar to me, a bit shorter. Do you want me to resubmit the patch in
this form?

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


More information about the Koha-bugs mailing list