Skip to content

Commit d39f094

Browse files
CRM-16309 (drupal user edit profile) fix redirect on delete contact image byt setting context
1 parent 0a91d0a commit d39f094

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

civicrm.module

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ function civicrm_form_data($edit, &$user, $category, $reset, $doNotProcess = FAL
622622
// CRM-7509
623623
$session = CRM_Core_Session::singleton();
624624
$sessionUserID = $session->get('userID');
625+
$session->replaceUserContext(url(current_path(), array('absolute' => TRUE)));
625626

626627
if ($sessionUserID != $userID) {
627628
// do not allow edit for anon users in joomla frontend, CRM-4668, unless u have checksum CRM-5228

0 commit comments

Comments
 (0)