mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-26 21:21:18 -08:00
push to switch branches
This commit is contained in:
parent
04d7884af8
commit
8962ced038
|
@ -244,8 +244,12 @@ class Asset extends Depreciable
|
||||||
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->rules = array_merge(
|
||||||
|
$this->rules,
|
||||||
|
$model->fieldset->validation_rules(),
|
||||||
|
);
|
||||||
|
|
||||||
$this->rules += $model->fieldset->validation_rules();
|
//$this->rules += $model->fieldset->validation_rules();
|
||||||
|
|
||||||
if ($this->model->fieldset){
|
if ($this->model->fieldset){
|
||||||
foreach ($this->model->fieldset->fields as $field){
|
foreach ($this->model->fieldset->fields as $field){
|
||||||
|
|
Loading…
Reference in a new issue