-- CRM-12941, CRM-12863 & CRM-12824 changes made as per the comments
authorRavish Nair <ravish.nair@webaccess.co.in>
Wed, 3 Jul 2013 07:20:32 +0000 (12:50 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Wed, 3 Jul 2013 07:20:32 +0000 (12:50 +0530)
----------------------------------------
* 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
templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl

index 049c7fd33facc14750ea522d7b16a95757261471..8f792c563a88e448c8a8251d6d9cb7907891fe21 100644 (file)
@@ -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);
         }
index 0592263ea8a7174e934390a3928a40c5b4a6146f..153313137283e8695f9b451cababeecf05ca3819 100644 (file)
@@ -24,7 +24,7 @@
  +--------------------------------------------------------------------+
 *}
 {if $showListing}
-  {if !$tabDisplay}<h1>{ts}{$customGroupTitle}{/ts}</h1>{/if}
+  <h1>{ts}{$customGroupTitle}{/ts}</h1>
   {if $records and $headers}
     {include file="CRM/common/jsortable.tpl"}
     <div id="browseValues">
     <div class="messages status no-popup">
       <div class="icon inform-icon"></div>
       &nbsp;
-      {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}
     </div>
     <div id='profile-dialog' class="hiddenElement"></div>
   {/if}