mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Only generate invitations for contacts with send_email true
This commit is contained in:
parent
24c733827b
commit
14e9e8358d
@ -33,7 +33,7 @@ class CreateInvitations extends AbstractService
|
||||
public function run()
|
||||
{
|
||||
|
||||
$contacts = $this->invoice->client->contacts;
|
||||
$contacts = $this->invoice->client->contacts()->where('send_email', true)->get();
|
||||
|
||||
if($contacts->count() == 0){
|
||||
$this->createBlankContact();
|
||||
|
Loading…
x
Reference in New Issue
Block a user