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 adfa7cb commit 42cd7ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/Magento/Customer/Model/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ private function prepareNamePrefixSuffixOptions($options, $isOptional = false)
$options = explode(';', $options);
foreach ($options as $value) {
$value = $this->escaper->escapeHtml(trim($value));
$result[$value] = $value;
if($value != '')
$result[$value] = $value;
}
if ($isOptional && trim(current($options))) {
$result = array_merge([' ' => ' '], $result);
Expand Down

0 comments on commit 42cd7ac

Please sign in to comment.