allows arrays on checkbox values

This commit is contained in:
spencerrlongg 2024-02-20 12:23:24 -06:00
parent 115e0fc119
commit c6d85a1b0b

View file

@ -663,6 +663,11 @@ class AssetsController extends Controller
$asset->{$field->db_column} = \Crypt::encrypt($request->input($field->db_column));
}
} else {
if ($field->element == 'checkbox') {
if(is_array($field_val)) {
$field_val = implode(',', $field_val);
}
}
$asset->{$field->db_column} = $request->input($field->db_column);
}
}