From e5e3f1add872bdc1d248e83ab1787e718e1c08dd Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Wed, 3 Jul 2013 12:50:32 +0530 Subject: [PATCH] -- CRM-12941, CRM-12863 & CRM-12824 changes made as per the comments ---------------------------------------- * CRM-12941: Redirect to proper contact tab after saving profile http://issues.civicrm.org/jira/browse/CRM-12941 * CRM-12863: Hide profile titles in HR tabs http://issues.civicrm.org/jira/browse/CRM-12863 * CRM-12824: Override message for empty tabs http://issues.civicrm.org/jira/browse/CRM-12824 --- CRM/Profile/Form/Edit.php | 5 ++--- .../CRM/Profile/Page/MultipleRecordFieldsListing.tpl | 8 ++------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/CRM/Profile/Form/Edit.php b/CRM/Profile/Form/Edit.php index 049c7fd33f..8f792c563a 100644 --- a/CRM/Profile/Form/Edit.php +++ b/CRM/Profile/Form/Edit.php @@ -62,8 +62,7 @@ class CRM_Profile_Form_Edit extends CRM_Profile_Form { function preProcess() { $this->_mode = CRM_Profile_Form::MODE_CREATE; - $this->_tabDisplay = CRM_Utils_Request::retrieve('tabDisplay', 'String', $this); - $this->assign('tabDisplay', $this->_tabDisplay); + $this->_onPopupClose = CRM_Utils_Request::retrieve('onPopupClose', 'String', $this); //set the context for the profile $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this); @@ -217,7 +216,7 @@ SELECT module //proper redirection and proccess form errors if any $popupRedirect = CRM_Utils_System::url('civicrm/profile/edit', $urlParams, FALSE, NULL, FALSE); - if ($this->_tabDisplay) { + if ($this->_onPopupClose == 'redirectToTab') { $popupRedirect = CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid={$this->_id}&selectedChild=custom_{$this->_customGroupId}", FALSE, NULL, FALSE); } diff --git a/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl b/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl index 0592263ea8..1533131372 100644 --- a/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl +++ b/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl @@ -24,7 +24,7 @@ +--------------------------------------------------------------------+ *} {if $showListing} - {if !$tabDisplay}

{ts}{$customGroupTitle}{/ts}

{/if} +

{ts}{$customGroupTitle}{/ts}

{if $records and $headers} {include file="CRM/common/jsortable.tpl"}
@@ -56,11 +56,7 @@
  - {if $tabDisplay} - {ts 1=$customGroupTitle}No records of type '%1' found.{/ts} - {else} - {ts}No multi-record entries found. Note: check is Include in multi-record listing property of the fields you want to display in listings{/ts} - {/if} + {ts 1=$customGroupTitle}No records of type '%1' found.{/ts}
{/if} -- 2.25.1