ok, found issue, but need to test some things now...

This commit is contained in:
spencerrlongg 2024-07-30 22:55:15 -05:00
parent 9b80843c77
commit 0941c0944a

View file

@ -15,7 +15,7 @@ trait MayContainCustomFields
$asset_model = AssetModel::find($this->model_id); $asset_model = AssetModel::find($this->model_id);
} }
if ($this->method() == 'PATCH' || $this->method() == 'PUT') { if ($this->method() == 'PATCH' || $this->method() == 'PUT') {
$asset_model = $this->asset; $asset_model = $this->asset->model;
} }
// collect the custom fields in the request // collect the custom fields in the request
$validator->after(function ($validator) use ($asset_model) { $validator->after(function ($validator) use ($asset_model) {