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

Fix (unreleased) fatal error on contribution preferences settings page #12940

Merged
merged 1 commit into from
Oct 18, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Recent changes to the display preferences page have caused an unreleased regression on the civicontribute preferences page. This fixes the regression but there are still some warnings for a follow up

Before

Page gives fatal rather than load

After

Page loads

Technical Details

Settings.getoptions supports a lesser format-set to CRM_Core_DAO::buildOptions does
in terms of pseudoconstant keys. Ideally we would fix that but for now
fix the fatal on the contribution page settings page by using
a format that is supported

Comments

@civibot
Copy link

civibot bot commented Oct 16, 2018

(Standard links)

@civibot civibot bot added the master label Oct 16, 2018
Settings.getoptions supports a lesser format-set to CRM_Core_DAO::buildOptions does
in terms of pseudoconstant keys. Ideally we would fix that but for now
fix the fatal on the contribution page settings page by using
a format that is supported
@eileenmcnaughton
Copy link
Contributor Author

@mattwire ....

@pradpnayak
Copy link
Contributor

Thanks @eileenmcnaughton for the fix. The changes look good to me. I agree we need to handle Pseudo-constant for settings as we need to add callback function for every settings. Probably using buildOptions() to build this? But we need to retain callback function for some use-cases. Thoughts?

Good to merge!

@eileenmcnaughton
Copy link
Contributor Author

@pradpnayak ideally we should support exactly the same options in the pseudoconstant key as the dao / schema xml does - it will have to be a todo for now though.

Merging based on your review

@eileenmcnaughton eileenmcnaughton merged commit 8e7db8e into civicrm:master Oct 18, 2018
@eileenmcnaughton eileenmcnaughton deleted the setting_fix branch October 18, 2018 08:40
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.

2 participants