Skip to content

Commit

Permalink
magento/graphql-ce#911: [Customer] Rename dob to date_of_birth
Browse files Browse the repository at this point in the history
  • Loading branch information
lenaorobei committed Oct 1, 2019
1 parent adb6517 commit f52ba88
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@ public function execute(CustomerInterface $customer): array
}
}
$customerData = array_merge($customerData, $customAttributes);
//Field is deprecated and should not be exposed on storefront.
//Fields are deprecated and should not be exposed on storefront.
$customerData['group_id'] = null;
$customerData['model'] = $customer;
$customerData['id'] = null;

$customerData['model'] = $customer;

//'dob' is deprecated, 'date_of_birth' is used instead.
if (!empty($customerData['dob'])) {
$customerData['date_of_birth'] = $customerData['dob'];
}
Expand Down

0 comments on commit f52ba88

Please sign in to comment.