[Koha-bugs] [Bug 19870] Loaned items show as available unless logged in

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 22 02:34:47 CET 2017


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

Mason James <mtj at kohaaloha.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mtj at kohaaloha.com
           See Also|                            |https://bugs.koha-community
                   |                            |.org/bugzilla3/show_bug.cgi
                   |                            |?id=17556

--- Comment #1 from Mason James <mtj at kohaaloha.com> ---
(In reply to James from comment #0)
> On the OPAC search results page issued (checked out) items still show as
> "Availability: Items available: (1)," when not logged in. When logged in
> they displays correctly as " Availability: No items available: Issued (1),".
> The items show correctly as issued in the details page regardless of whether
> the user is logged in or not and display correctly in the staff client.

hmm.. i think this problem was caused by bug 17556 ?

there seems to be an odd logic error that says an item can only have an
'onloan' status.. if a user is logged in


2094             my $userenv = C4::Context->userenv;
2095             if ( $item->{onloan}
2096                 && $userenv
2097                 && $userenv->{number}
2098                 && !(
Koha::Patrons->find($userenv->{number})->category->hidelostitems &&
$item->{itemlost} ) )
2099             {

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


More information about the Koha-bugs mailing list