Skip to content

Commit

Permalink
#36623 bugfix custom label ident check
Browse files Browse the repository at this point in the history
  • Loading branch information
mbe1987 committed Aug 21, 2024
1 parent 80479df commit bedbdd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ private function buildService(Order $order): ?VAS
protected function createIdent(Order $order): VASIdentCheck
{
$identCheck = new VASIdentCheck();
$identCheck->setDateOfBirth(new \DateTime($order->getFieldData('mo_dhl_ident_check_birthday')));
if ($birthday = $order->getFieldData('mo_dhl_ident_check_birthday')) {
$identCheck->setDateOfBirth(new \DateTime($birthday));
}
$identCheck->setFirstName($order->moDHLGetAddressData('fname'));
$identCheck->setLastName($order->moDHLGetAddressData('lname'));
$identCheck->setMinimumAge(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@
</td>
<td>
<input type="text" name="data[services][identCheck][dateOfBirth]"
value="[{if $identDetails && $identDetails->isInitialized('dateOfBirth')}][{$identDetails->getDateOfBirth()}][{/if}]">
value="[{strip}][{if $identDetails && $identDetails->isInitialized('dateOfBirth')}]
[{assign var="bday" value=$identDetails->getDateOfBirth()}]
[{$bday->format("d.m.Y")}]
[{/if}][{/strip}]">
</td>
</tr>
<tr>
Expand Down

0 comments on commit bedbdd9

Please sign in to comment.