From dcb786b9e8dad5cad234e7913e9bded0e7c53ad3 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 25 Aug 2021 15:01:18 +0200 Subject: [PATCH] cut off title (max. 20 chars) --- version/205/class/Checkout/Order/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/205/class/Checkout/Order/Address.php b/version/205/class/Checkout/Order/Address.php index a37fa8f..04a8621 100644 --- a/version/205/class/Checkout/Order/Address.php +++ b/version/205/class/Checkout/Order/Address.php @@ -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;