Skip to content

Commit

Permalink
Cast text field value in presentation (ILIAS-eLearning#7774)
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais authored Jul 4, 2024
1 parent 0ab22eb commit 0431129
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0431129

Please sign in to comment.