Skip to content
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

Merged
merged 3 commits into from
Jan 21, 2019

Conversation

jgillmanjr
Copy link
Contributor

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 be TRUE in the call to CRM_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.

@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented Jan 17, 2019

(Standard links)

@civibot civibot bot added the master label Jan 17, 2019
@jgillmanjr
Copy link
Contributor Author

Also, significant thanks to @christianwach - I wouldn't have even thought/known about the first change without him.

@seamuslee001
Copy link
Contributor

Jenkins add to whitelist

@jgillmanjr
Copy link
Contributor Author

Huh. Test failure for something which I didn't touch.

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@eileenmcnaughton
Copy link
Contributor

test fail is something unrelated

Test Result (2 failures / ±0)CRM_Utils_GeocodeTest.testGeocodeMethodOffCRM_Utils_GeocodeTest.testStateProvinceFormat

@colemanw
Copy link
Member

I'm going to merge this based on review and testing by @christianwach. The code looks good to me as well.

@colemanw colemanw merged commit bf924b4 into civicrm:master Jan 21, 2019
@christianwach
Copy link
Member

Thanks @colemanw 👍

@jgillmanjr jgillmanjr deleted the front_contribution_page branch January 21, 2019 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants