Skip to content

Commit

Permalink
Force string type on DCL text fields (ILIAS-eLearning#7770)
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais authored Jul 4, 2024
1 parent 9010904 commit aeb8063
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,10 @@ public function parseSortingValue($value, bool $link = true): string
return (string) $value;
}
}

public function loadValue(): void
{
parent::loadValue();
$this->value = (string) $this->value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getHTML(bool $link = true, array $options = []): string
$link = (string) $value['link'];
$link_value = $value['title'] ?: $this->shortenLink($link);
} else {
$link = (string) $value;
$link = $value;
$link_value = $this->shortenLink($link);
}

Expand Down

0 comments on commit aeb8063

Please sign in to comment.