Set a field to '0' with change_field_type
- Single Page
Posted 15 June 2012 - 16:19 PM
$crud->change_field_type('exported', 'hidden', '0');
or
$crud->change_field_type('exported', 'hidden', 0);
and the form retains the original exported value. I replaced with another number (2) and it worked as expected by populating the field with 2 - how do I get this to work as I need it to?
Thanks
Posted 15 June 2012 - 19:13 PM
if($this->change_field_type != null && isset($this->change_field_type[$field_info->name]))
It should perhaps read:
if($this->change_field_type !== null && isset($this->change_field_type[$field_info->name]))
(Note the !== rather than !=)
Posted 16 June 2012 - 16:21 PM