Skip to content

Commit

Permalink
ENGCOM-4146: Fixed #17861 Customer Name Prefix shows white space when…
Browse files Browse the repository at this point in the history
… extra separator is addes #20896

 - Merge Pull Request #20896 from opencommerce/magento2:2.3-developPR17861
 - Merged commits:
   1. 8ff4aa5
  • Loading branch information
magento-engcom-team committed Feb 6, 2019
2 parents 8dfe26a + 8ff4aa5 commit b595a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Customer/Model/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private function prepareNamePrefixSuffixOptions($options, $isOptional = false)
return false;
}
$result = [];
$options = explode(';', $options);
$options = array_filter(explode(';', $options));
foreach ($options as $value) {
$value = $this->escaper->escapeHtml(trim($value));
$result[$value] = $value;
Expand Down

0 comments on commit b595a61

Please sign in to comment.