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

Add stripAlternatives to MarkupFieldOutputHandler to hide the email ALTERNATE notation

parent 1ebdad9d
No related branches found
No related tags found
No related merge requests found
# Version 1.54 (not yet released)
* Add stripAlternatives to MarkupFieldOutputHandler to hide the email ALTERNATE notation
# Version 1.53
* Fix for #109 sticky headers and dashlet.
......
......@@ -23,7 +23,9 @@ class MarkupFieldOutputHandler extends AbstractSimpleSortableFieldOutputHandler
* @return \Civi\DataProcessor\FieldOutputHandler\FieldOutput
*/
public function formatField($rawRecord, $formattedRecord) {
$formattedValue = $rawRecord[$this->inputFieldSpec->alias];
// 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->setHtmlOutput($formattedValue);
return $output;
......
......@@ -14,7 +14,7 @@
<url desc="Documentation">https://lab.civicrm.org/extensions/dataprocessor/blob/master/README.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2022-08-03</releaseDate>
<releaseDate>2022-08-31</releaseDate>
<version>1.54-dev</version>
<develStage>stable</develStage>
<compatibility>
......
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