Suppress pay now on user dashboard if none configured #27954
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Suppress pay now on user dashboard if none configured
Before
On the dmaster build currently if a user does a pay later contribution via a contribution page they will see a 'pay now' buttong. However, this does not work unless the site has a configured default payment page
After
The link only shows if the default payment page is configured
Technical Details
This is a minimal fix, that attempts to honor what the existing code is doing. One thing that makes this worse is that the civicrm component settings form is messed up - ie the Default Payment Page is required rather than optional - so when it is not configured it appears configured. There are other issues with that form - the legacy of the
'contribution_invoice_settings'
pseudosetting.However, I suspect @petednz might be happy with this fix & not want to push to get more fixed
Comments