codeigniter-smartgrid
codeigniter-smartgrid copied to clipboard
enum with booleans not working correctly
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