From b5b2a6f0620da06432a7259d0e1f14dc5ebbd12e Mon Sep 17 00:00:00 2001
From: Jaap Jansma <jaap.jansma@civicoop.org>
Date: Fri, 1 Nov 2019 14:23:03 +0100
Subject: [PATCH] update

---
 .../FieldOutputHandler/RelationshipsFieldOutputHandler.php  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Civi/DataProcessor/FieldOutputHandler/RelationshipsFieldOutputHandler.php b/Civi/DataProcessor/FieldOutputHandler/RelationshipsFieldOutputHandler.php
index d14529a5..c5696b2e 100644
--- a/Civi/DataProcessor/FieldOutputHandler/RelationshipsFieldOutputHandler.php
+++ b/Civi/DataProcessor/FieldOutputHandler/RelationshipsFieldOutputHandler.php
@@ -162,18 +162,18 @@ class RelationshipsFieldOutputHandler extends AbstractFieldOutputHandler {
         $link = '<a href="' . $url . '">' . $dao->display_name . '</a>';
         $image = \CRM_Contact_BAO_Contact_Utils::getImage($dao->contact_sub_type ? $dao->contact_sub_type : $dao->contact_type,  FALSE, $dao->id);
         if ($this->show_label) {
-          $htmlFormattedValues[] = $dao->label . ':&nbsp;' . $link;
+          $htmlFormattedValues[] = $image .'&nbsp;' . $dao->label . ':&nbsp;' . $link;
           $formattedValues[] = $dao->label.': '.$dao->display_name;
         }
         else {
-          $htmlFormattedValues[] = $link;
+          $htmlFormattedValues[] = $image .'&nbsp;' . $link;
           $formattedValues[] = $dao->display_name;
         }
       }
     }
     $output = new HTMLFieldOutput($contactId);
     $output->formattedValue = implode(",", $formattedValues);
-    $output->setHtmlOutput(implode("<br>", $formattedValues));
+    $output->setHtmlOutput(implode("<br>", $htmlFormattedValues));
     return $output;
   }
 
-- 
GitLab