Skip to content

Commit b595a61

Browse files
ENGCOM-4146: Fixed #17861 Customer Name Prefix shows white space when extra separator is addes #20896
- Merge Pull Request #20896 from opencommerce/magento2:2.3-developPR17861 - Merged commits: 1. 8ff4aa5
2 parents 8dfe26a + 8ff4aa5 commit b595a61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private function prepareNamePrefixSuffixOptions($options, $isOptional = false)
9191
return false;
9292
}
9393
$result = [];
94-
$options = explode(';', $options);
94+
$options = array_filter(explode(';', $options));
9595
foreach ($options as $value) {
9696
$value = $this->escaper->escapeHtml(trim($value));
9797
$result[$value] = $value;

0 commit comments

Comments
 (0)