diff --git a/Modules/DataCollection/classes/Fields/Text/class.ilDclTextRecordFieldModel.php b/Modules/DataCollection/classes/Fields/Text/class.ilDclTextRecordFieldModel.php index a3f32ce94553..ec0783a1d661 100644 --- a/Modules/DataCollection/classes/Fields/Text/class.ilDclTextRecordFieldModel.php +++ b/Modules/DataCollection/classes/Fields/Text/class.ilDclTextRecordFieldModel.php @@ -157,10 +157,4 @@ public function parseSortingValue($value, bool $link = true): string return $value; } } - - public function loadValue(): void - { - parent::loadValue(); - $this->value = (string) $this->value; - } } diff --git a/Modules/DataCollection/classes/Fields/Text/class.ilDclTextRecordRepresentation.php b/Modules/DataCollection/classes/Fields/Text/class.ilDclTextRecordRepresentation.php index 82d351becd2b..7318deeca595 100644 --- a/Modules/DataCollection/classes/Fields/Text/class.ilDclTextRecordRepresentation.php +++ b/Modules/DataCollection/classes/Fields/Text/class.ilDclTextRecordRepresentation.php @@ -39,7 +39,7 @@ public function getHTML(bool $link = true, array $options = []): string $link = (string) $value['link']; $link_value = $value['title'] ?: $this->shortenLink($link); } else { - $link = $value; + $link = (string) $value; $link_value = $this->shortenLink($link); }