From e08129f7c570cbd19a248381276808fbe5a65a2a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 30 Mar 2014 18:41:09 -0400 Subject: [PATCH] CRM-14407 - Fix case custom field popup --- CRM/Case/Form/CustomData.php | 2 ++ templates/CRM/Case/Form/CustomData.tpl | 7 ++-- templates/CRM/Case/Page/CustomDataView.tpl | 39 ++-------------------- 3 files changed, 6 insertions(+), 42 deletions(-) diff --git a/CRM/Case/Form/CustomData.php b/CRM/Case/Form/CustomData.php index 26695a4476..f0dce0724b 100644 --- a/CRM/Case/Form/CustomData.php +++ b/CRM/Case/Form/CustomData.php @@ -91,8 +91,10 @@ class CRM_Case_Form_CustomData extends CRM_Core_Form { ); // simplified formatted groupTree $groupTree = CRM_Core_BAO_CustomGroup::formatGroupTree($groupTree, 1, $this); + // Array contains only one item foreach ($groupTree as $groupValues) { $this->_customTitle = $groupValues['title']; + CRM_Utils_System::setTitle(ts('Edit %1', array(1 => $groupValues['title']))); } $this->_defaults = array(); diff --git a/templates/CRM/Case/Form/CustomData.tpl b/templates/CRM/Case/Form/CustomData.tpl index 0d2eb1a052..1eda4fd84b 100644 --- a/templates/CRM/Case/Form/CustomData.tpl +++ b/templates/CRM/Case/Form/CustomData.tpl @@ -23,8 +23,5 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} - -
- {include file="CRM/Custom/Form/CustomData.tpl"} -
{$form.buttons.html}
-
+{include file="CRM/Custom/Form/CustomData.tpl" skipTitle=1} +
{include file="CRM/common/formButtons.tpl" location="bottom"}
diff --git a/templates/CRM/Case/Page/CustomDataView.tpl b/templates/CRM/Case/Page/CustomDataView.tpl index 8811ad8bfd..da6ef019d1 100644 --- a/templates/CRM/Case/Page/CustomDataView.tpl +++ b/templates/CRM/Case/Page/CustomDataView.tpl @@ -69,14 +69,13 @@ {/foreach}
- +
{ts}Edit{/ts}

+
-
{/foreach} @@ -119,40 +118,6 @@ CRM.status({success: '{/literal}{ts escape="js"}Record Deleted{/ts}{literal}'}, request); } {/literal} - - {else} - {/if} -- 2.25.1