Merge pull request #4174 from Striffly/patch-1

Fix BaseRepository
This commit is contained in:
David Bomba 2020-10-17 15:57:18 +11:00 committed by GitHub
commit 7d586a6d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,7 @@ class BaseRepository
//make sure we are creating an invite for a contact who belongs to the client only! //make sure we are creating an invite for a contact who belongs to the client only!
$contact = ClientContact::find($invitation['client_contact_id']); $contact = ClientContact::find($invitation['client_contact_id']);
if ($contact && $model->client_id == $contact->client_id); if ($contact && $model->client_id == $contact->client_id)
{ {
$invitation_class = sprintf('App\\Models\\%sInvitation', $resource); $invitation_class = sprintf('App\\Models\\%sInvitation', $resource);