implode submitted arrays to save

This commit is contained in:
spencerrlongg 2024-02-14 13:15:23 -06:00
parent 1ceb703129
commit 115e0fc119

View file

@ -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;