mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 06:59:41 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
db8a7c5ad9
|
@ -212,6 +212,7 @@ class Asset extends Depreciable
|
||||||
|
|
||||||
$this->rules += $model->fieldset->validation_rules();
|
$this->rules += $model->fieldset->validation_rules();
|
||||||
|
|
||||||
|
if ($this->model->fieldset){
|
||||||
foreach ($this->model->fieldset->fields as $field){
|
foreach ($this->model->fieldset->fields as $field){
|
||||||
if($field->format == 'BOOLEAN'){
|
if($field->format == 'BOOLEAN'){
|
||||||
$this->{$field->db_column} = filter_var($this->{$field->db_column}, FILTER_VALIDATE_BOOLEAN);
|
$this->{$field->db_column} = filter_var($this->{$field->db_column}, FILTER_VALIDATE_BOOLEAN);
|
||||||
|
@ -219,6 +220,7 @@ class Asset extends Depreciable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return parent::save($params);
|
return parent::save($params);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue