Skip to content

Commit

Permalink
Move prefix and suffix default values to a new PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Evers committed Jun 13, 2017
1 parent 5f1b460 commit 3c632aa
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions app/code/Magento/Checkout/Block/Checkout/AttributeMerger.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,24 +321,14 @@ protected function getDefaultValue($attributeCode)
return $this->getCustomer()->getFirstname();
}
break;
case 'lastname':
if ($this->getCustomer()) {
return $this->getCustomer()->getLastname();
}
break;
case 'middlename':
if ($this->getCustomer()) {
return $this->getCustomer()->getMiddlename();
}
break;
case 'prefix':
if ($this->getCustomer()) {
return $this->getCustomer()->getPrefix();
}
break;
case 'suffix':
case 'lastname':
if ($this->getCustomer()) {
return $this->getCustomer()->getSuffix();
return $this->getCustomer()->getLastname();
}
break;
case 'country_id':
Expand Down

0 comments on commit 3c632aa

Please sign in to comment.