Skip to content

Commit

Permalink
[FINNA-2872] LIDO: Fix empty subject being displayed (#3106)
Browse files Browse the repository at this point in the history
  • Loading branch information
siiriylonen authored Dec 20, 2024
1 parent ebf7a9e commit b081fae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions module/Finna/src/Finna/RecordDriver/SolrLido.php
Original file line number Diff line number Diff line change
Expand Up @@ -2034,11 +2034,10 @@ function ($term) {
if (!in_array($type, $this->nonPlaceEvents)) {
$displayDate = $node->event->eventDate->displayDate ?? null;
if (!empty($displayDate)) {
$date = (string)($this->getLanguageSpecificItem(
$displayDate,
$language
));
$headings[] = ['data' => $date];
$date = trim((string)$this->getLanguageSpecificItem($displayDate, $language));
if (!empty($date)) {
$headings[] = ['data' => $date];
}
}
}
}
Expand Down

0 comments on commit b081fae

Please sign in to comment.