From b56fec55934c7a1ca607c4cc3eae2e0f3fe02c73 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 28 Feb 2014 21:59:43 -0500 Subject: [PATCH] Add no-popup to contact links --- CRM/Core/Form/Renderer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Form/Renderer.php b/CRM/Core/Form/Renderer.php index 0c3c4dbef1..9bb1046e30 100644 --- a/CRM/Core/Form/Renderer.php +++ b/CRM/Core/Form/Renderer.php @@ -235,13 +235,14 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty { /** * Render entity references as text. - * If user has permission, format as link (or now limited to contacts). + * If user has permission, format as link (for now limited to contacts). * @param $el array * @param $field HTML_QuickForm_element */ function renderFrozenEntityRef(&$el, $field) { $entity = $field->getAttribute('data-api-entity'); $vals = json_decode($field->getAttribute('data-entity-value'), TRUE); + // Hack for single-entity @see self::preProcessEntityRef if (isset($vals['id'])) { $vals = array($vals); } @@ -250,7 +251,7 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty { // Format contact as link if ($entity == 'contact' && CRM_Contact_BAO_Contact_Permission::allow($val['id'], CRM_Core_Permission::VIEW)) { $url = CRM_Utils_System::url("civicrm/contact/view", array('reset' => 1, 'cid' => $val['id'])); - $val['label'] = '' . $val['label'] . ''; + $val['label'] = '' . $val['label'] . ''; } $display[] = $val['label']; } -- 2.25.1