mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-30 23:34:33 -04:00
Fixes for deleted invoices showing in portal
This commit is contained in:
parent
a303e9bf95
commit
ff50c6413f
@ -75,7 +75,10 @@ class InvitationController extends Controller
|
|||||||
|
|
||||||
$entity_obj = 'App\Models\\'.ucfirst(Str::camel($entity)).'Invitation';
|
$entity_obj = 'App\Models\\'.ucfirst(Str::camel($entity)).'Invitation';
|
||||||
|
|
||||||
$invitation = $entity_obj::whereRaw('BINARY `key`= ?', [$invitation_key])
|
$invitation = $entity_obj::where('key', $invitation_key)
|
||||||
|
->whereHas($entity, function ($query) {
|
||||||
|
$query->where('is_deleted',0);
|
||||||
|
})
|
||||||
->with('contact.client')
|
->with('contact.client')
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user