From 2af014dad2428a6c659be78bc3bc86d28f90ef7f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 10 Feb 2015 12:00:59 +0200 Subject: [PATCH] Prevented issue sending invoice when contact or user is deleted --- app/models/Invitation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/Invitation.php b/app/models/Invitation.php index 885a88334fdc..bb9f4db77a04 100755 --- a/app/models/Invitation.php +++ b/app/models/Invitation.php @@ -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()