From 5f5a6693959215439089f211f1380d76b0114608 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Tue, 25 Mar 2014 18:19:05 +0530 Subject: [PATCH] CRM-13992_temp_fix : fix for comment #comment-58624 --- CRM/Contact/Form/CustomData.php | 5 +++++ templates/CRM/Contact/Form/CustomData.tpl | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/CustomData.php b/CRM/Contact/Form/CustomData.php index a3e9feffd1..c8e9cf4cd1 100644 --- a/CRM/Contact/Form/CustomData.php +++ b/CRM/Contact/Form/CustomData.php @@ -132,6 +132,11 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form { $this->_groupID = CRM_Utils_Request::retrieve('groupID', 'Positive', $this); $this->_tableID = $this->_entityId; $this->_copyValueId = CRM_Utils_Request::retrieve('copyValueId', 'Positive', $this); + $backUrl = CRM_Core_Session::singleton()->readUserContext(); + $this->assign('backUrl', $backUrl); + if (!empty($_POST['hidden_custom'])) { + $this->assign('postedInfo', TRUE); + } } return; } diff --git a/templates/CRM/Contact/Form/CustomData.tpl b/templates/CRM/Contact/Form/CustomData.tpl index a0cbf755dc..86929ccb00 100644 --- a/templates/CRM/Contact/Form/CustomData.tpl +++ b/templates/CRM/Contact/Form/CustomData.tpl @@ -24,7 +24,7 @@ +--------------------------------------------------------------------+ *} {* this template is used for building tabbed custom data *} -{if $cdType } +{if $cdType || $postedInfo} {include file="CRM/Custom/Form/CustomData.tpl"} {if $multiRecordDisplay eq 'single'}
{$form.buttons.html}
@@ -34,7 +34,22 @@ {/literal} {/if} -- 2.25.1