Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2023-10-31 16:30:22 +00:00
commit db8a7c5ad9

View file

@ -212,9 +212,11 @@ class Asset extends Depreciable
$this->rules += $model->fieldset->validation_rules(); $this->rules += $model->fieldset->validation_rules();
foreach ($this->model->fieldset->fields as $field){ if ($this->model->fieldset){
if($field->format == 'BOOLEAN'){ foreach ($this->model->fieldset->fields as $field){
$this->{$field->db_column} = filter_var($this->{$field->db_column}, FILTER_VALIDATE_BOOLEAN); if($field->format == 'BOOLEAN'){
$this->{$field->db_column} = filter_var($this->{$field->db_column}, FILTER_VALIDATE_BOOLEAN);
}
} }
} }
} }