From 23cd73571d3d6bd2bca0355406e075fce8389eef Mon Sep 17 00:00:00 2001 From: "B. Endres" Date: Mon, 26 Apr 2021 19:46:23 +0200 Subject: [PATCH] [#4] truncate source --- CRM/Core/Payment/SDDNGPostProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Payment/SDDNGPostProcessor.php b/CRM/Core/Payment/SDDNGPostProcessor.php index 3dd10a3..54f9ad9 100644 --- a/CRM/Core/Payment/SDDNGPostProcessor.php +++ b/CRM/Core/Payment/SDDNGPostProcessor.php @@ -128,7 +128,7 @@ public static function createPendingMandate($contribution_id = null) 'date' => date('YmdHis'), 'creation_date' => date('YmdHis'), 'validation_date' => date('YmdHis'), - 'source' => $contribution['contribution_source'], + 'source' => substr($contribution['contribution_source'], 0, 64), ) ); CRM_Sepapp_Configuration::log( @@ -171,7 +171,7 @@ public static function createPendingMandate($contribution_id = null) 'date' => date('YmdHis'), 'creation_date' => date('YmdHis'), 'validation_date' => date('YmdHis'), - 'source' => $contribution['contribution_source'], + 'source' => substr($contribution['contribution_source'], 0, 64), ) ); CRM_Sepapp_Configuration::log(