Skip to content

Commit f52ba88

Browse files
committed
magento/graphql-ce#911: [Customer] Rename dob to date_of_birth
1 parent adb6517 commit f52ba88

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/CustomerGraphQl/Model/Customer/ExtractCustomerData.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,13 @@ public function execute(CustomerInterface $customer): array
101101
}
102102
}
103103
$customerData = array_merge($customerData, $customAttributes);
104-
//Field is deprecated and should not be exposed on storefront.
104+
//Fields are deprecated and should not be exposed on storefront.
105105
$customerData['group_id'] = null;
106-
$customerData['model'] = $customer;
107106
$customerData['id'] = null;
107+
108+
$customerData['model'] = $customer;
109+
110+
//'dob' is deprecated, 'date_of_birth' is used instead.
108111
if (!empty($customerData['dob'])) {
109112
$customerData['date_of_birth'] = $customerData['dob'];
110113
}

0 commit comments

Comments
 (0)