Merge pull request #17166 from Godmartinz/item_name_fix_from_account_eula_table

FIXED: #17136 loads item relation properly in account EULA tab
This commit is contained in:
snipe
2025-06-12 11:53:51 +01:00
committed by GitHub

View File

@@ -562,7 +562,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
{
return $this->hasMany(Actionlog::class, 'target_id')
->with('item')
->select(['id', 'target_id', 'target_type', 'action_type', 'filename', 'accept_signature', 'created_at', 'note'])
->select(['id', 'target_id', 'target_type', 'action_type', 'filename', 'accept_signature', 'created_at', 'note', 'item_id', 'item_type'])
->where('target_type', self::class)
->where('action_type', 'accepted')
->whereNotNull('filename')