mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
implode submitted arrays to save
This commit is contained in:
parent
1ceb703129
commit
115e0fc119
|
@ -584,6 +584,11 @@ class AssetsController extends Controller
|
|||
}
|
||||
}
|
||||
}
|
||||
if ($field->element == 'checkbox') {
|
||||
if(is_array($field_val)) {
|
||||
$field_val = implode(',', $field_val);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$asset->{$field->db_column} = $field_val;
|
||||
|
|
Loading…
Reference in a new issue