From 6e91fbbca76cf01544bf760bfdd1d4ffc7c08e19 Mon Sep 17 00:00:00 2001 From: Jason Gillman Jr Date: Thu, 17 Jan 2019 00:23:22 -0500 Subject: [PATCH 1/3] Force test contribution pages to front end --- CRM/Contribute/Page/ContributionPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contribute/Page/ContributionPage.php b/CRM/Contribute/Page/ContributionPage.php index 9073ce204838..ba93c5c95dbf 100644 --- a/CRM/Contribute/Page/ContributionPage.php +++ b/CRM/Contribute/Page/ContributionPage.php @@ -215,6 +215,7 @@ public function &onlineContributionLinks() { 'title' => ts('Test-drive'), 'url' => $urlString, 'qs' => $urlParams . '&action=preview', + 'fe' => TRUE, // Addresses https://lab.civicrm.org/dev/core/issues/658 'uniqueName' => 'test_drive', ), ); From c56db8c350b5c7ca28d5c88dd8d169fd3396db7b Mon Sep 17 00:00:00 2001 From: Jason Gillman Jr Date: Thu, 17 Jan 2019 00:51:41 -0500 Subject: [PATCH 2/3] Specify front end (where applicable) when getNotifyUrl is called --- CRM/Core/Payment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 779aca3248c2..7603137137a5 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -1146,7 +1146,8 @@ protected function getNotifyUrl() { array(), TRUE, NULL, - FALSE + FALSE, + TRUE ); return (stristr($url, '.')) ? $url : ''; } From 86045c01c7bc24dcf666abd71d2ddd97128c0876 Mon Sep 17 00:00:00 2001 From: Jason Gillman Jr Date: Thu, 17 Jan 2019 10:59:24 -0500 Subject: [PATCH 3/3] Removed extra space --- CRM/Contribute/Page/ContributionPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Page/ContributionPage.php b/CRM/Contribute/Page/ContributionPage.php index ba93c5c95dbf..81a0521cc6b4 100644 --- a/CRM/Contribute/Page/ContributionPage.php +++ b/CRM/Contribute/Page/ContributionPage.php @@ -215,7 +215,7 @@ public function &onlineContributionLinks() { 'title' => ts('Test-drive'), 'url' => $urlString, 'qs' => $urlParams . '&action=preview', - 'fe' => TRUE, // Addresses https://lab.civicrm.org/dev/core/issues/658 + 'fe' => TRUE, // Addresses https://lab.civicrm.org/dev/core/issues/658 'uniqueName' => 'test_drive', ), );