From bb0a814d4b2a7063a98dec09dddc6baf0cc95b7e Mon Sep 17 00:00:00 2001 From: William Mortada Date: Thu, 13 Oct 2016 10:49:54 +0100 Subject: [PATCH] Reinstate deleted code --- CRM/Report/Form/Contact/Relationship.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CRM/Report/Form/Contact/Relationship.php b/CRM/Report/Form/Contact/Relationship.php index 0e72df6d1a..82d792d312 100644 --- a/CRM/Report/Form/Contact/Relationship.php +++ b/CRM/Report/Form/Contact/Relationship.php @@ -707,6 +707,17 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { $entryFound = TRUE; } + if (array_key_exists('civicrm_relationship_relationship_id', $row) && + array_key_exists('civicrm_contact_id', $row) + ) { + $url = "/civicrm/contact/view/rel?reset=1&action=update&rtype=a_b&cid=" . + $row['civicrm_contact_id'] . "&id=" . + $row['civicrm_relationship_relationship_id']; + $rows[$rowNum]['civicrm_relationship_relationship_id_link'] = $url; + $rows[$rowNum]['civicrm_relationship_relationship_id_hover'] = ts("Edit this relationship."); + $entryFound = TRUE; + } + // skip looking further in rows, if first row itself doesn't // have the column we need if (!$entryFound) { -- 2.25.1