Skip to content

Commit

Permalink
ENGCOM-3924: Issue Fixed: #8086: Multiline admin field is broken #20371
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Feb 24, 2019
2 parents b9a0c5d + 417b944 commit a897bf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/code/Magento/Config/Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ protected function _processGroup(
if (!isset($fieldData['value'])) {
$fieldData['value'] = null;
}

if ($field->getType() == 'multiline' && is_array($fieldData['value'])) {
$fieldData['value'] = trim(implode(PHP_EOL, $fieldData['value']));
}

$data = [
'field' => $fieldId,
'groups' => $groups,
Expand Down

0 comments on commit a897bf8

Please sign in to comment.