Skip to content
Snippets Groups Projects
Commit 30a15a9b authored by jrockowitz's avatar jrockowitz Committed by Jacob Rockowitz
Browse files

Issue #3443934: Item format custom HTML is not valid

parent 20985dfa
No related branches found
No related tags found
2 merge requests!563Issue #3443934: Item format custom HTML is not valid,!411#3425433 add reworked paging and getLimit
Pipeline #351363 canceled
......@@ -194,7 +194,7 @@ abstract class DateBase extends WebformElementBase {
if ($format === 'raw') {
return $value;
}
elseif (DateFormat::load($format)) {
elseif (DateFormat::load(mb_convert_encoding($format, 'ASCII', 'UTF-8'))) {
return $this->dateFormatter->format($timestamp, $format);
}
else {
......
......@@ -575,7 +575,7 @@ class WebformEntityListBuilder extends ConfigEntityListBuilder {
$access_type = 'users';
$access_value = $account->id();
}
elseif ($role = $this->getEntityStorage('user_role')->load(iconv('UTF-8', 'ASCII//TRANSLIT', $keys))) {
elseif ($role = $this->getEntityStorage('user_role')->load(mb_convert_encoding($keys, 'ASCII', 'UTF-8'))) {
$access_type = 'roles';
$access_value = $role->id();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment