Skip to content
Snippets Groups Projects
Commit 136127f2 authored by Ravish Nair's avatar Ravish Nair
Browse files

-- CRM-12941 handled for the point " If the onPopupClose is unspecified or is...

-- CRM-12941 handled for the point " If the onPopupClose is unspecified or is "redirectToProfile", then use the normal/old redirect URL"

----------------------------------------
* CRM-12941: Redirect to proper contact tab after saving profile
  http://issues.civicrm.org/jira/browse/CRM-12941
parent e5e3f1ad
No related branches found
No related tags found
No related merge requests found
......@@ -214,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->_onPopupClose == 'redirectToTab') {
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment