Add format property to list columns (#3990)
Credit to @vicrly. Fixes #3967.
This commit is contained in:
parent
23817c363c
commit
eb1d3fadbc
|
|
@ -1117,6 +1117,10 @@ class Lists extends WidgetBase
|
|||
$value = implode(', ', $value);
|
||||
}
|
||||
|
||||
if (is_string($column->format) && !empty($column->format)) {
|
||||
$value = sprintf($column->format, $value);
|
||||
}
|
||||
|
||||
return htmlentities($value, ENT_QUOTES, 'UTF-8', false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue