Skip to content

Commit

Permalink
cut off title (max. 20 chars)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Aug 25, 2021
1 parent 5436495 commit dcb786b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version/205/class/Checkout/Order/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function factory($address)
{
$resource = parent::factory($address);

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

0 comments on commit dcb786b

Please sign in to comment.