Skip to content
Snippets Groups Projects
Commit 03acb3af authored by André Lahmann's avatar André Lahmann Committed by Robert Lange
Browse files

refs #22989 [de_d13] bugfix for undefined property check: title hold link

parent c51d647d
Branches
Tags
No related merge requests found
......@@ -335,12 +335,14 @@ class FincLibero extends FincILS implements TranslatorAwareInterface
$isTitleHold
&&
(
!isset($this->noTitleHoldStatuses)
!isset($this->noTitleHoldStatuses)
|| empty($this->noTitleHoldStatuses)
|| !in_array($item['localIlsStatus'], $this->noTitleHoldStatuses)
)
) {
// this is a titleHold and we show TitleHoldLink
$result_item['item_id'] = $titleHoldId;
$result_item['addTitleHoldLink'] = true;
} else {
$result_item['item_id'] = $item['id'];
}
......@@ -348,10 +350,6 @@ class FincLibero extends FincILS implements TranslatorAwareInterface
// custom DAIA field used in getHoldLink()
$result_item['ilslink']
= ($item['href'] ?? $doc_href);
// show TitleHoldLink except for defined noTitleHoldStatuses
if ($isTitleHold && !in_array($item['localIlsStatus'], $this->noTitleHoldStatuses)) {
$result_item['addTitleHoldLink'] = true;
}
// count items
$number++;
......
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