Skip to content

Commit

Permalink
ENGCOM-4427: [Backport] Issue Fixed: #8086: Multiline admin field is …
Browse files Browse the repository at this point in the history
…broken #21561
  • Loading branch information
sivaschenko authored Mar 30, 2019
2 parents dd980a4 + 8ad8f8b commit d4dddfa
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 d4dddfa

Please sign in to comment.