From 57913baf0924eea531325052b641756accbac6da Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 28 May 2017 21:38:42 +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 69a7fce64d12..41562725e1d8 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -494,6 +494,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(); }