Skip to content

Commit 3c632aa

Browse files
author
Anton Evers
committed
Move prefix and suffix default values to a new PR
1 parent 5f1b460 commit 3c632aa

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -321,24 +321,14 @@ protected function getDefaultValue($attributeCode)
321321
return $this->getCustomer()->getFirstname();
322322
}
323323
break;
324-
case 'lastname':
325-
if ($this->getCustomer()) {
326-
return $this->getCustomer()->getLastname();
327-
}
328-
break;
329324
case 'middlename':
330325
if ($this->getCustomer()) {
331326
return $this->getCustomer()->getMiddlename();
332327
}
333328
break;
334-
case 'prefix':
335-
if ($this->getCustomer()) {
336-
return $this->getCustomer()->getPrefix();
337-
}
338-
break;
339-
case 'suffix':
329+
case 'lastname':
340330
if ($this->getCustomer()) {
341-
return $this->getCustomer()->getSuffix();
331+
return $this->getCustomer()->getLastname();
342332
}
343333
break;
344334
case 'country_id':

0 commit comments

Comments
 (0)