Skip to content
Snippets Groups Projects
Commit 8c5f1fb8 authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #62 from TriCollegeLibraries/holds-bug-fix

Fix bug in place holds functionality
parents 474ee89d 9ae45d3c
No related merge requests found
......@@ -151,14 +151,18 @@ class RecordController extends AbstractRecord
$defaultRequired = $this->holds()->getDefaultRequiredDate($checkHolds);
$defaultRequired = $this->getServiceLocator()->get('VuFind\DateConverter')
->convertToDisplayDate("U", $defaultRequired);
try {
$defaultPickup = $catalog->getDefaultPickUpLocation($patron, $gatheredDetails);
} catch (\Exception $e) {
$defaultPickup = false;
}
return $this->createViewModel(
array(
'gatheredDetails' => $gatheredDetails,
'pickup' => $pickup,
'defaultPickup' => $catalog->getDefaultPickUpLocation(
$patron, $gatheredDetails
),
'defaultPickup' => $defaultPickup,
'homeLibrary' => $this->getUser()->home_library,
'extraHoldFields' => $extraHoldFields,
'defaultRequiredDate' => $defaultRequired
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment