mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Prevent invoices from marked as viewed when using invoice.services
This commit is contained in:
parent
0a3d9b24de
commit
1b6c6bc529
@ -169,6 +169,11 @@ class InvoiceController extends BaseController
|
|||||||
$contact->invitation_openend = $invitation->opened_date && $invitation->opened_date != '0000-00-00 00:00:00' ? $invitation->opened_date : false;
|
$contact->invitation_openend = $invitation->opened_date && $invitation->opened_date != '0000-00-00 00:00:00' ? $invitation->opened_date : false;
|
||||||
$contact->invitation_status = $contact->email_error ? false : $invitation->getStatus();
|
$contact->invitation_status = $contact->email_error ? false : $invitation->getStatus();
|
||||||
$contact->invitation_signature_svg = $invitation->signatureDiv();
|
$contact->invitation_signature_svg = $invitation->signatureDiv();
|
||||||
|
|
||||||
|
// when using invoice.services prevent markng as viewed
|
||||||
|
if (Utils::isNinja() && $account->domain_id != \Domain::INVOICENINJA_COM) {
|
||||||
|
$contact->invitation_link .= '?silent=true';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user