File tree 1 file changed +3
-3
lines changed
app/code/Magento/Checkout/Block/Checkout 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ private function getAddressAttributes()
83
83
}
84
84
85
85
/**
86
- * Convert prefix and suffix from inputs to selects when necessary
86
+ * Convert elements(like prefix and suffix) from inputs to selects when necessary
87
87
*
88
88
* @param array $elements address attributes
89
89
* @param array $attributesToConvert fields and their callbacks
90
90
* @return array
91
91
*/
92
- private function convertPrefixSuffix ($ elements , $ attributesToConvert )
92
+ private function convertElementsToSelect ($ elements , $ attributesToConvert )
93
93
{
94
94
$ codes = array_keys ($ attributesToConvert );
95
95
foreach (array_keys ($ elements ) as $ code ) {
@@ -128,7 +128,7 @@ public function process($jsLayout)
128
128
];
129
129
130
130
$ elements = $ this ->getAddressAttributes ();
131
- $ elements = $ this ->convertPrefixSuffix ($ elements , $ attributesToConvert );
131
+ $ elements = $ this ->convertElementsToSelect ($ elements , $ attributesToConvert );
132
132
// The following code is a workaround for custom address attributes
133
133
if (isset ($ jsLayout ['components ' ]['checkout ' ]['children ' ]['steps ' ]['children ' ]['billing-step ' ]['children ' ]
134
134
['payment ' ]['children ' ]
You can’t perform that action at this time.
0 commit comments