Skip to content

Commit 00819a0

Browse files
committed
Moving $urlHelper definition
1 parent 7731e5f commit 00819a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

module/VuFind/src/VuFind/AjaxHandler/GetItemStatuses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ protected function getItemStatusGroup($record, $callnumberSetting)
386386
}
387387

388388
if (isset($this->getThis)) {
389-
$urlHelper = $this->renderer->plugin('url');
390389
$this->getThis->setItems($record);
391390
}
392391
// Build list split out by location:
@@ -407,6 +406,7 @@ protected function getItemStatusGroup($record, $callnumberSetting)
407406
) {
408407
$itemIdParams = !empty($locationStatus['item_id'])
409408
? ['query' => ['item_id' => $locationStatus['item_id']]] : null;
409+
$urlHelper ??= $this->renderer->plugin('url');
410410
$getThisURL = $urlHelper(
411411
'record-getthis',
412412
['id' => $record[0]['id'] ?? null],

0 commit comments

Comments
 (0)