#11548 Fix separators and select separators

This commit is contained in:
miguel angel rasteu 2023-06-13 11:36:54 +02:00
parent 6a941f6cda
commit 9e4c1a7574
1 changed files with 9 additions and 9 deletions

View File

@ -351,12 +351,12 @@ class ModuleTableValueWidget extends Widget
];
$fields = [
'
' => __('Carriage Return'),
'|' => __('Vertical Bar'),
';' => __('Semicolon'),
':' => __('Colon'),
',' => __('Commas'),
' ' => __('Blank'),
htmlentities('

', ENT_QUOTES) => __('Carriage Return'),
'|' => __('Vertical Bar'),
';' => __('Semicolon'),
':' => __('Colon'),
',' => __('Commas'),
htmlentities(' ', ENT_QUOTES) => __('Blank'),
];
$inputs[] = [
@ -407,11 +407,11 @@ class ModuleTableValueWidget extends Widget
$size_text = $this->values['sizeLabel'];
$data_module = modules_get_last_value($id_module);
$value = (string) $data_module;
$value = nl2br((string) $data_module);
$value = str_replace(
io_safe_output($this->values['separator']),
'<br/>',
'<br />',
nl2br(io_safe_output(html_entity_decode($this->values['separator']))),
$value
);