Skip to content

Commit

Permalink
MAGETWO-41418: [GITHUB] Add "Not Specified" as a gender option when c…
Browse files Browse the repository at this point in the history
…ustomer does not specify gender #1496
  • Loading branch information
vpelipenko committed Aug 31, 2015
1 parent 6fb25a3 commit 741b295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Customer/Setup/CustomerSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function getDefaultEntities()
'validate_rules' => 'a:0:{}',
'position' => 110,
'admin_checkout' => 1,
'option' => ['values' => ['Male', 'Female', 'Not Specified']],
'option' => ['values' => ['Male', 'Female']],
],
'disable_auto_group_change' => [
'type' => 'static',
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Customer/Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
$entityTypeId = $customerSetup->getEntityTypeId(Customer::ENTITY);
$attributeId = $customerSetup->getAttributeId($entityTypeId, 'gender');

$option = ['attribute_id' => $attributeId, 'values' => [2 => 'Not Specified']];
$option = ['attribute_id' => $attributeId, 'values' => [3 => 'Not Specified']];
$customerSetup->addAttributeOption($option);
}

Expand Down

0 comments on commit 741b295

Please sign in to comment.