mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 18:00:54 -04:00
Prevented issue sending invoice when contact or user is deleted
This commit is contained in:
parent
99568e4cee
commit
2af014dad2
@ -9,12 +9,12 @@ class Invitation extends EntityModel
|
||||
|
||||
public function contact()
|
||||
{
|
||||
return $this->belongsTo('Contact');
|
||||
return $this->belongsTo('Contact')->withTrashed();
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('User');
|
||||
return $this->belongsTo('User')->withTrashed();
|
||||
}
|
||||
|
||||
public function getLink()
|
||||
|
Loading…
x
Reference in New Issue
Block a user