mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Bill using the wrong field for join (#15524)
This commit is contained in:
@@ -52,6 +52,6 @@ class Bill extends Model
|
|||||||
|
|
||||||
public function ports(): BelongsToMany
|
public function ports(): BelongsToMany
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(\App\Models\Port::class, 'bill_ports', 'bill_id', 'bill_id');
|
return $this->belongsToMany(\App\Models\Port::class, 'bill_ports', 'bill_id', 'port_id');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user