Skip to content
Snippets Groups Projects
Unverified Commit f6d557f1 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #14518 from colemanw/paymentEditFix

#965 Fix destination in payment edit
parents 18490549 501ec37c
Branches
Tags
No related merge requests found
......@@ -181,7 +181,12 @@ class CRM_Financial_Form_PaymentEdit extends CRM_Core_Form {
$this->submit($params);
CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url(CRM_Utils_System::currentPath()));
$contactId = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', $this->_contributionID, 'contact_id');
$url = CRM_Utils_System::url(
"civicrm/contact/view/contribution",
"reset=1&action=update&id={$this->_contributionID}&cid={$contactId}&context=contribution"
);
CRM_Core_Session::singleton()->pushUserContext($url);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment