Skip to content

Commit

Permalink
implode submitted arrays to save
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerrlongg committed Feb 14, 2024
1 parent 1ceb703 commit 115e0fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/Api/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,11 @@ public function store(StoreAssetRequest $request): JsonResponse
}
}
}
if ($field->element == 'checkbox') {
if(is_array($field_val)) {
$field_val = implode(',', $field_val);
}
}


$asset->{$field->db_column} = $field_val;
Expand Down

0 comments on commit 115e0fc

Please sign in to comment.