Skip to content

Commit adb6517

Browse files
committed
[Customer] Rename dob to date_of_birth #911
1 parent 33d8148 commit adb6517

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ public function execute(CustomerInterface $customer): array
105105
$customerData['group_id'] = null;
106106
$customerData['model'] = $customer;
107107
$customerData['id'] = null;
108-
$customerData['date_of_birth'] = $customerData['dob'];
108+
if (!empty($customerData['dob'])) {
109+
$customerData['date_of_birth'] = $customerData['dob'];
110+
}
109111
return $customerData;
110112
}
111113
}

0 commit comments

Comments
 (0)