Skip to content
Snippets Groups Projects
Commit 81ab7f53 authored by Klaas Eikelboom's avatar Klaas Eikelboom
Browse files

Make stripAlternavites (Removing the ALTERNATE text from activity detail...

Make stripAlternavites (Removing the ALTERNATE text from activity detail field) also work for the API.
parent b3190967
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,8 @@
* Fix error in Case Reports caused by removal of print permissions (by another extension).
* Fixed issue in Case Search. The hidden fields configuration was not respected.
* !110 PHP 8.1 compatibility - don't pull NULL to stripos
* !11 Update hook_civicrm_tabset for forward-compat with 5.57
* !11 Update hook_civicrm_tabset for forward-compat with 5.57
* Make stripAlternavites (Removing the ALTERNATE text from activity detail field) also work for the API.
# Version 1.57
......
......@@ -26,7 +26,7 @@ class MarkupFieldOutputHandler extends AbstractSimpleSortableFieldOutputHandler
// stripAlternatives is needed for an email activity details field where sometimes an email
// is stored in html and text as well
$formattedValue = \CRM_Utils_String::stripAlternatives($rawRecord[$this->inputFieldSpec->alias]);
$output = new HTMLFieldOutput($rawRecord[$this->inputFieldSpec->alias]);
$output = new HTMLFieldOutput($formattedValue);
$output->setHtmlOutput($formattedValue);
return $output;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment