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
 - Merge Pull Request #20371 from cedcommerce/magento2:2.3-develop-issue-fix-8086
 - Merged commits:
   1. ddb1137
  • Loading branch information
magento-engcom-team committed Jan 21, 2019
2 parents 2c31192 + ddb1137 commit 1b0a1d0
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 1b0a1d0

Please sign in to comment.