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

--- Comment #14 from Jonathan Druart <[email protected]> ---
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.
_______________________________________________
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