[Koha-bugs] [Bug 6390] Basket only visible for librarian who created it

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 18 22:51:39 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6390

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5963|0                           |1
        is obsolete|                            |

--- Comment #34 from Katrin Fischer <katrin.fischer at bsz-bw.de> 2011-10-18 20:51:39 UTC ---
Created attachment 5966
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5966
[SIGNED-OFF] Bug 6390 Followup: Basket's authorisedby might not be a
borrowernumber

aqbasket.authorisedby is not foreign key constrainted to
borrowers.borrowernumber,
so if it's anything other than that, vendor search breaks by using an undefined
value
(GetMember() on an invalid borrowernumber) as a HASH ref.

This patch sets the branchcode (the desired value from GetMember) to a blank
value, then only
changes it if GetMember is defined.  In the case where the authorisedby
librarian has been deleted,
or the value is otherwise invalid, and AcqViewBaskets is set to 'branch', the
basket will not appear
except to superlibrarians

Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
Invalid borrowernumber in aqbasket.authorisedby no longer breaks search.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list