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 multiselect/checkbox custom field defaults on contribution online form #16991

Merged
merged 1 commit into from
Apr 5, 2020

Conversation

pradpnayak
Copy link
Contributor

Overview

Fixes a bug where certain types of custom fields were not being correctly pre-populated on online contribution profiles.

Before

Screen Shot 2020-04-05 at 22 44 39

After

Screen Shot 2020-04-05 at 22 44 13

Technical Details

The CRM_Core_BAO_UFGroup::setProfileDefaults() function expects each field to be an array,
but this function was just passing it the number 1. So it did not have enough field metadata
to correctly format each value.

@civibot
Copy link

civibot bot commented Apr 5, 2020

(Standard links)

@colemanw
Copy link
Member

colemanw commented Apr 5, 2020

Merging as this is consistent with the fix in #16981

@colemanw colemanw merged commit 6448d86 into civicrm:master Apr 5, 2020
@pradpnayak pradpnayak deleted the customFieldDefaults branch June 5, 2020 23:24
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