1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for is_public

This commit is contained in:
Hillel Coren 2017-05-28 21:38:59 +03:00
parent 18cbf56439
commit bd3bcbd6ba

View File

@ -493,6 +493,7 @@ class Invoice extends EntityModel implements BalanceAffecting
public function markInvitationSent($invitation, $messageId = false, $notify = true, $notes = false)
{
if (! $this->isSent()) {
$this->is_public = true;
$this->invoice_status_id = INVOICE_STATUS_SENT;
$this->save();
}