mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Handle mismatch in action_logs and asset assigned_type
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
65c2f27644
commit
e7f5feed06
|
@ -474,7 +474,7 @@ class Asset extends Depreciable
|
|||
*/
|
||||
public function assignedTo()
|
||||
{
|
||||
return $this->morphTo('assigned', 'assigned_type', 'assigned_to')->withTrashed();
|
||||
return $this->morphTo('assigned', 'assigned_type', 'assigned_to')->whereNotNull('assigned_type')->withTrashed();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue