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

Checkbox with default value checked is NULL in database #3784

Open
Cruiser13 opened this Issue Dec 21, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Cruiser13
Copy link
Contributor

Cruiser13 commented Dec 21, 2018

Bug Report

Expected behavior

A object datatype checkbox with default option checked should insert 1 in the database if no user interaction takes place.

Actual behavior

A object datatype checkbox with default option checked does insert NULL in the database if no user interaction takes place - same as with object datatype checkboxes which do not have a default option checked selected.

Steps to reproduce

Create a checkbox datatype in some object. Check the default value.
checkbox-default-checked
Create some object of this and save it. Value in database will be null. To get a 1, you'll need to uncheck the default checked checkbox and check it again.

Tested on Pimcore v5.5.4

@NiklasBr

This comment has been minimized.

Copy link
Contributor

NiklasBr commented Jan 3, 2019

We have also encountered this.

Do you think it is related to #3585?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment