-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test-drive contribution pages to the front #13482
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
Also, significant thanks to @christianwach - I wouldn't have even thought/known about the first change without him. |
Jenkins add to whitelist |
Huh. Test failure for something which I didn't touch. |
Jenkins re test this please |
test fail is something unrelated Test Result (2 failures / ±0)CRM_Utils_GeocodeTest.testGeocodeMethodOffCRM_Utils_GeocodeTest.testStateProvinceFormat |
I'm going to merge this based on review and testing by @christianwach. The code looks good to me as well. |
Thanks @colemanw 👍 |
Overview
Specify that Test-drive contribution pages are front end. Addresses this issue.
Before
Test-drive contribution pages would be displayed in the backend of Wordpress. This also lead to the IPN notification URLs to be set to the backend (which obviously won't work).
After
Test-drive contribution pages now point to the front end. IPN notification URLs also point back to the front end.
Technical Details
First change involves
CRM/Contribute/Page/ContributionPage.php
and assigns'fe' => TRUE
for the preview action.Second change involves
CRM/Core/Payment.php
and specifying$frontend
to beTRUE
in the call toCRM_Utils_System::url()
.Comments
The second change doesn't appear to be required given the first change seemed to address the issue as outlined over in Lab and on StackExchange. However, I figure it might serve as a potential backstop.
I'm more than happy to pull that one if it shouldn't be there.