Though it's very small matter, thought to mention.
I noticed that when default value is true/false for a boolean field it won't work as expected. It only works with 0/1 as value.
Since the field is boolean, I would expect that true/false would be a valid value.
The error I receive is
I noticed that when default value is true/false for a boolean field it won't work as expected. It only works with 0/1 as value.
Since the field is boolean, I would expect that true/false would be a valid value.
PHP:
protected function _getFields()
{
$fields = parent::_getFields();
$fields['xf_user_field']['example'] = array(
'type' => self::TYPE_BOOLEAN,
'default' => false
);
return $fields;
}
The error I receive is
PHP:
Mysqli statement execute error : Incorrect integer value: '' for column 'example' at row 1