diff --git a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php index 9bdba22cfe1b8539a478dc13ea5a9b1b8c7a6b8e..c053f579b096877dc12e3d12b29fbc84c3cc946d 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php +++ b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php @@ -4,7 +4,7 @@ * * PHP version 5 * - * Copyright (C) The National Library of Finland 2012-2016. + * Copyright (C) The National Library of Finland 2012-2017. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, @@ -211,6 +211,10 @@ class MultiBackend extends AbstractBase $source = $this->getSource($id); $driver = $this->getDriver($source); if ($driver) { + // Don't pass on patron information belonging to another source + if ($patron && $this->getSource($patron['cat_username']) !== $source) { + $patron = null; + } $holdings = $driver->getHolding( $this->getLocalId($id), $this->stripIdPrefixes($patron, $source)