⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Wrong true_false value for column



marlaaragao

marlaaragao
  • profile picture
  • Member

Posted 21 October 2015 - 12:22 PM

Hello,

 

I noticed a strange behavior in one of my tables: the column receives a wrong value for a true_false (db type TINYINT) field. On the edit form, the value is correct.

 

I have a column 'is_active' (0 when not active and 1 when active).
When a entry is not active, even tho the value is 0 on db, the column on list action receives the value 1 (I saw the problem and tested with a callback).
Does anyone have an idea why is this happening? I know probably is not on grocery_crud, since other tables have the correct behavior, but I was hoping someone could give a little hand figuring this out.

 

The edit form receives the right value*.

 

Thanks!