Skip to content

Commit

Permalink
Use fallback when data type is missing
Browse files Browse the repository at this point in the history
Uses the existing getForExtract() logic to get a fallback data type.
Fixes #1439
  • Loading branch information
jimsafley committed Aug 8, 2019
1 parent fd3127a commit a27c7ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public function getFulltextText($resource)
$texts = [];
foreach ($resource->getValues()->matching($criteria) as $value) {
$valueRepresentation = new ValueRepresentation($value, $services);
$texts[] = $dataTypes->get($value->getType())->getFulltextText($view, $valueRepresentation);
$texts[] = $dataTypes->getForExtract($value)->getFulltextText($view, $valueRepresentation);
}
return implode("\n", $texts);
}
Expand Down

0 comments on commit a27c7ed

Please sign in to comment.