From ef4d35f11458871a1f9fc9fb441e2baa3f026c53 Mon Sep 17 00:00:00 2001 From: Muhammad Shahrukh <> Date: Mon, 16 Sep 2024 16:42:17 +0500 Subject: [PATCH] COMCL-835: Fix pivot report generation --- CRM/Civicase/Form/Report/ExtendedReport.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CRM/Civicase/Form/Report/ExtendedReport.php b/CRM/Civicase/Form/Report/ExtendedReport.php index a9e1c8c00..3bb391d47 100644 --- a/CRM/Civicase/Form/Report/ExtendedReport.php +++ b/CRM/Civicase/Form/Report/ExtendedReport.php @@ -2827,7 +2827,14 @@ protected function formatCustomValues($value, $customField, $fieldValueMap, arra break; case 'Link': - $retValue = CRM_Utils_System::formatWikiURL($value); + $items = explode(' ', trim($value), 2); + if (count($items) == 2) { + $title = $items[1]; + } + else { + $title = $items[0]; + } + $retValue = CRM_Utils_System::href($title, $items[0], NULL, FALSE); break; case 'File':