Skip to content

Commit c5d618d

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-48248: [GitHub] Prefix field has wrong type on Checkout #3083
CR fixes
1 parent 79507b6 commit c5d618d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Checkout/Block/Checkout/LayoutProcessor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ private function getAddressAttributes()
8383
}
8484

8585
/**
86-
* Convert prefix and suffix from inputs to selects when necessary
86+
* Convert elements(like prefix and suffix) from inputs to selects when necessary
8787
*
8888
* @param array $elements address attributes
8989
* @param array $attributesToConvert fields and their callbacks
9090
* @return array
9191
*/
92-
private function convertPrefixSuffix($elements, $attributesToConvert)
92+
private function convertElementsToSelect($elements, $attributesToConvert)
9393
{
9494
$codes = array_keys($attributesToConvert);
9595
foreach (array_keys($elements) as $code) {
@@ -128,7 +128,7 @@ public function process($jsLayout)
128128
];
129129

130130
$elements = $this->getAddressAttributes();
131-
$elements = $this->convertPrefixSuffix($elements, $attributesToConvert);
131+
$elements = $this->convertElementsToSelect($elements, $attributesToConvert);
132132
// The following code is a workaround for custom address attributes
133133
if (isset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
134134
['payment']['children']

0 commit comments

Comments
 (0)