Skip to content
Snippets Groups Projects
Commit 815bc337 authored by Tim Otten's avatar Tim Otten
Browse files

Merge pull request #1099 from ravishnair/CiviHR

-- CRM-12941, CRM-12863 & CRM-12824 changes made as per the comments
parents 80e799e4 136127f2
Branches
Tags
No related merge requests found
......@@ -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);
......@@ -215,9 +214,10 @@ SELECT module
//passing the post url to template so the popup form does
//proper redirection and proccess form errors if any
$popupRedirect = CRM_Utils_System::url('civicrm/profile/edit', $urlParams, FALSE, NULL, FALSE);
if ($this->_tabDisplay) {
if (!isset($this->_onPopupClose) || $this->_onPopupClose == 'redirectToProfile') {
$popupRedirect = CRM_Utils_System::url('civicrm/profile/edit', $urlParams, FALSE, NULL, FALSE);
}
elseif ($this->_onPopupClose == 'redirectToTab') {
$popupRedirect = CRM_Utils_System::url('civicrm/contact/view',
"reset=1&cid={$this->_id}&selectedChild=custom_{$this->_customGroupId}", FALSE, NULL, FALSE);
}
......
......@@ -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">
......@@ -56,11 +56,7 @@
<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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment