From bd3bcbd6ba9cb7b191ac6f86d6b70cf923e8fb36 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 28 May 2017 21:38:59 +0300 Subject: [PATCH] Fix for is_public --- app/Models/Invoice.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 8a375e84fdbd..237280aa4176 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -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(); }