From 3255c209328247dfe8732883ee729fdd3da9d9f1 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 27 Jun 2014 22:51:48 +0530 Subject: [PATCH] CRM-14701 QA fix ---------------------------------------- * CRM-14701: Form data not retained subsequent to contribution page on behalf of fix https://issues.civicrm.org/jira/browse/CRM-14701 --- CRM/Core/Page/AJAX/Location.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Page/AJAX/Location.php b/CRM/Core/Page/AJAX/Location.php index 48de73257b..0a241dfb35 100644 --- a/CRM/Core/Page/AJAX/Location.php +++ b/CRM/Core/Page/AJAX/Location.php @@ -51,7 +51,10 @@ class CRM_Core_Page_AJAX_Location { // Verify user id $user = CRM_Utils_Request::retrieve('uid', 'Integer', CRM_Core_DAO::$_nullObject, FALSE, CRM_Core_Session::singleton()->get('userID')); - if (!$user || !CRM_Contact_BAO_Contact_Permission::validateChecksumContact($user, CRM_Core_DAO::$_nullObject, FALSE)) { + if (empty($user) || + (CRM_Utils_Request::retrieve('cs', 'String', $form, FALSE) && + !CRM_Contact_BAO_Contact_Permission::validateChecksumContact($user, CRM_Core_DAO::$_nullObject, FALSE)) + ) { CRM_Utils_System::civiExit(); } @@ -306,4 +309,3 @@ class CRM_Core_Page_AJAX_Location { CRM_Utils_System::civiExit(); } } - -- 2.25.1