Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Not Specified" as a gender option when customer does not specify gender #1496

Merged
merged 4 commits into from
Sep 1, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added Not Specified as a gender option so when customer does not spec…
…ify value does not default to male
  • Loading branch information
chadbean committed Jul 16, 2015
commit 2a5c5506405e3d6be58f63d3eb98247b36e7cd73
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']],
'option' => ['values' => ['Not Specified', 'Male', 'Female']],
],
'disable_auto_group_change' => [
'type' => 'static',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function testGetCustomer()
*/
public function testGetGenderOptions()
{
$options = [['label' => __('Male'), 'value' => 'M'], ['label' => __('Female'), 'value' => 'F']];
$options = [['label' => __('Not Specified'), 'value' => 'NA'], ['label' => __('Male'), 'value' => 'M'], ['label' => __('Female'), 'value' => 'F']];

$this->attribute->expects($this->once())->method('getOptions')->will($this->returnValue($options));
$this->assertSame($options, $this->block->getGenderOptions());
Expand Down