Skip to content

Commit

Permalink
Fix FieldRender::apply_wordlimit.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Aug 28, 2024
1 parent 0b072c4 commit 849a733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fieldrender.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function apply_wordlimit($wl = 0, $hwl = 0) {
}
if ($hwl > 0 && $wc > $hwl) {
list($prefix, $suffix) = count_words_split($this->value, $hwl);
$this->data = rtrim($prefix) . "";
$this->value = rtrim($prefix) . "";
}
if ($wl > 0 && $wc > $wl && ($hwl <= 0 || $wl < $hwl)) {
list($prefix, $suffix) = count_words_split($this->value, $wl);
Expand Down

0 comments on commit 849a733

Please sign in to comment.