[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
Tue Nov 2 12:39:21 CET 2021


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

--- Comment #14 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
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
}

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


More information about the Koha-bugs mailing list