Skip to content

Commit dcb786b

Browse files
author
Christian
authored
cut off title (max. 20 chars)
1 parent 5436495 commit dcb786b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version/205/class/Checkout/Order/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function factory($address)
2727
{
2828
$resource = parent::factory($address);
2929

30-
$resource->title = trim(($address->cAnrede === 'm' ? Shop::Lang()->get('mr') : Shop::Lang()->get('mrs')) . ' ' . $address->cTitel) ?: null;
30+
$resource->title = substr(trim(($address->cAnrede === 'm' ? Shop::Lang()->get('mr') : Shop::Lang()->get('mrs')) . ' ' . $address->cTitel) ?: null, 0 , 20);
3131
$resource->givenName = $address->cVorname;
3232
$resource->familyName = $address->cNachname;
3333
$resource->email = $address->cMail ?: null;

0 commit comments

Comments
 (0)