Koha-clms/acqui
Ian Walls 598c008fa3 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@web.de>
Invalid borrowernumber in aqbasket.authorisedby no longer breaks search.
(cherry picked from commit 58bdfdb088)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-11-16 07:47:55 -05:00
..
pdfformat Bug 5970: Adds the ability to use a free delivery address for basket 2011-04-05 15:10:17 +12:00
acqui-home.pl bug 6834 followup removing param_map 2011-09-03 06:39:24 +12:00
addorder.pl Bug 5680: Order cancelling improvement : delete attached items & biblio if avalaible 2011-10-19 16:58:46 +13:00
addorderiso2709.pl BZ6074: setting import flag when staged file imported in aqbasket 2011-10-07 10:08:41 +13:00
basket.pl Bug 5680: Order cancelling improvement : delete attached items & biblio if avalaible 2011-10-19 16:58:46 +13:00
basketgroup.pl Bug 6076: acqui pdf error when marcxml wrong 2011-10-07 10:20:13 +13:00
basketheader.pl Fix FSF address in directory acqui/ 2010-03-16 20:17:51 -04:00
booksellers.pl Bug 6390 Followup: Basket's authorisedby might not be a borrowernumber 2011-11-16 07:47:55 -05:00
check_budget_total.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
check_duplicate_barcode_ajax.pl Bug 6963: Corrects a problem when a new order is created with a duplicate barcode. 2011-11-16 07:40:03 -05:00
currency.pl Fix FSF address in directory acqui/ 2010-03-16 20:17:51 -04:00
finishreceive.pl Fix FSF address in directory acqui/ 2010-03-16 20:17:51 -04:00
histsearch.pl Bug 6807 - Add ISBN filter to advanced order search. 2011-10-14 10:57:30 +13:00
lateorders.pl Bug5063: C4::Bookseller Changes 2011-03-12 08:42:26 +13:00
neworderbiblio.pl Bug 6994: Wrong 'no budget defined' alert 2011-11-16 07:42:46 -05:00
neworderempty.pl Follow-up patch : use the subfield associated with items.barcode 2011-11-16 07:40:16 -05:00
newordersuggestion.pl Bug5063: C4::Bookseller Changes 2011-03-12 08:42:26 +13:00
orderreceive.pl Bug5063: C4::Bookseller Changes 2011-03-12 08:42:26 +13:00
parcel.pl Bug 5680: Follow Up for Order cancelling improvement : the same for parcel.pl 2011-10-19 16:59:12 +13:00
parcels.pl Bug 6072: fixing permission inconsistencies MT5306 2011-04-08 13:10:12 +12:00
supplier.pl Bug 6072: fixing permission inconsistencies MT5306 2011-04-08 13:10:12 +12:00
uncertainprice.pl Fix FSF address in directory acqui/ 2010-03-16 20:17:51 -04:00
updatesupplier.pl 5936: Remove some obsolete db columns from aqbooksellers and aqbudgets if needed 2011-04-07 16:30:16 +12:00
z3950_search.pl Bug 5445: Nicer breadcrumbs when ordering from different sources 2011-04-27 16:10:46 +12:00