3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-10-29 11:21:21 +00:00

Include manufacturer_id

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-07-16 14:03:30 +01:00
parent 2225c44b12
commit a4ba070c84

View File

@ -773,7 +773,7 @@ class Asset extends Depreciable
*/
public function model()
{
return $this->belongsTo(\App\Models\AssetModel::class, 'model_id')->select(['id', 'name', 'model_number', 'category_id', 'created_at', 'created_by'])->withTrashed();
return $this->belongsTo(\App\Models\AssetModel::class, 'model_id')->select(['id', 'name', 'model_number', 'manufacturer_id', 'category_id', 'created_at', 'created_by'])->withTrashed();
}
/**