Add format property to list columns (#3990)

Credit to @vicrly. Fixes #3967.
This commit is contained in:
Woo 2018-12-20 10:52:07 +08:00 committed by Luke Towers
parent 23817c363c
commit eb1d3fadbc
1 changed files with 4 additions and 0 deletions

View File

@ -1117,6 +1117,10 @@ class Lists extends WidgetBase
$value = implode(', ', $value); $value = implode(', ', $value);
} }
if (is_string($column->format) && !empty($column->format)) {
$value = sprintf($column->format, $value);
}
return htmlentities($value, ENT_QUOTES, 'UTF-8', false); return htmlentities($value, ENT_QUOTES, 'UTF-8', false);
} }