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

enum with booleans not working correctly #6

Open
Shenzu90 opened this issue Oct 1, 2018 · 0 comments
Open

enum with booleans not working correctly #6

Shenzu90 opened this issue Oct 1, 2018 · 0 comments

Comments

@Shenzu90
Copy link

Shenzu90 commented Oct 1, 2018

Hello everyone,

I have a problem regarding boolean values. In my Table I have multiple boolean(tinyint) fields with either 0 or 1.

For the presentation in my DataGrid I use an enum-type like this:
[cut] "type"=>"enum", "source"=>$boollist [cut]

the enum is declared as follows:
$boollist = array(0=>"No", 1=>"Yes")

Fields that hold the value 1 are "converted" correctly, fields with value 0 are not. For testing purposes I changed all 0 to 3 (both in DB and in the enum) which is working so it looks like the index 0 somehow doesn't work correctly.

Thank you in advance.

Kind regards,
Shenzu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant