Skip to content

Commit

Permalink
Merge pull request #9 from sitepark/feature/addStartLetterOnlyWithCon…
Browse files Browse the repository at this point in the history
…tent

fix: set sp_startletter field only with content
  • Loading branch information
hyra-soe authored Sep 17, 2024
2 parents 40ca046 + 0e4c62a commit 9e1dc04
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ public function enrichDocument(
?: $base->getString('title');
$doc->sp_sortvalue = $sortHeadline;

$doc->sp_startletter = $base->getString('startletter');
if ($base->has('startletter')) {
$doc->sp_startletter = $base->getString('startletter');
}

/** @var string[] $keyword */
$keyword = $metadata->getArray('keywords');
Expand Down

0 comments on commit 9e1dc04

Please sign in to comment.