mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 05:15:45 +00:00
Merge pull request #16877 from marcusmoore/bug/sc-29012
Allow updating asset model image via api
This commit is contained in:
@ -19,6 +19,7 @@ class StoreAssetModelRequest extends ImageUploadRequest
|
||||
|
||||
public function prepareForValidation(): void
|
||||
{
|
||||
parent::prepareForValidation();
|
||||
|
||||
if ($this->category_id) {
|
||||
if ($category = Category::find($this->category_id)) {
|
||||
|
||||
Reference in New Issue
Block a user