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

serialize as boolean setting value for checkbox in CRM_Admin_Form_Gen… #19576

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

sluc23
Copy link
Contributor

@sluc23 sluc23 commented Feb 10, 2021

Overview

Serialize setting value as boolean for checkbox in CRM_Admin_Form_Generic.
Issue: https://lab.civicrm.org/dev/core/-/issues/2371

Before

When a setting is defined as "Boolean / Checkbox" in its metadata, the Form CRM_Admin_Form_Generic saves it as integer value (serialized in civicrm_setting.value table)

After

The setting is serialized as bool

Technical Details

cast checkbox value as bool

Comments

Something similar happens with setting "Integer / Textbox" where the value is serialized as string in MySQL. But I'd tackle that issue in a different PR

@civibot
Copy link

civibot bot commented Feb 10, 2021

(Standard links)

@civibot civibot bot added the master label Feb 10, 2021
@eileenmcnaughton eileenmcnaughton merged commit 0166118 into civicrm:master Feb 10, 2021
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