Skip to content

Commit 1b0a1d0

Browse files
ENGCOM-3924: Issue Fixed: #8086: Multiline admin field is broken #20371
- Merge Pull Request #20371 from cedcommerce/magento2:2.3-develop-issue-fix-8086 - Merged commits: 1. ddb1137
2 parents 2c31192 + ddb1137 commit 1b0a1d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Config/Model/Config.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ protected function _processGroup(
424424
if (!isset($fieldData['value'])) {
425425
$fieldData['value'] = null;
426426
}
427+
428+
if ($field->getType() == 'multiline' && is_array($fieldData['value'])) {
429+
$fieldData['value'] = trim(implode(PHP_EOL, $fieldData['value']));
430+
}
431+
427432
$data = [
428433
'field' => $fieldId,
429434
'groups' => $groups,

0 commit comments

Comments
 (0)