Skip to content

Commit

Permalink
Customer Name Prefix shows white space when extra separator is addes. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketika committed Aug 30, 2018
1 parent 42cd7ac commit b3efc4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/code/Magento/Customer/Model/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ private function prepareNamePrefixSuffixOptions($options, $isOptional = false)
$options = explode(';', $options);
foreach ($options as $value) {
$value = $this->escaper->escapeHtml(trim($value));
if($value != '')
$result[$value] = $value;
$result[$value] = $value;
}
if ($isOptional && trim(current($options))) {
$result = array_merge([' ' => ' '], $result);
Expand Down

0 comments on commit b3efc4b

Please sign in to comment.