1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for invoice invitations

* Fixes for invoice invitations

* Fixes for invoice invitations
This commit is contained in:
David Bomba 2020-02-10 21:20:49 +11:00 committed by GitHub
parent 069d2b99c6
commit d77c662ee9
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class InvoiceInvitation extends BaseModel {
use Inviteable; use Inviteable;
protected $fillable = [ protected $fillable = [
'key', //'key',
//'client_contact_id', //'client_contact_id',
]; ];

View File

@ -86,7 +86,7 @@ class InvoiceRepository extends BaseRepository {
} }
$new_invitation = InvoiceInvitationFactory::create($invoice->company_id, $invoice->user_id); $new_invitation = InvoiceInvitationFactory::create($invoice->company_id, $invoice->user_id);
$new_invitation->fill($invitation); //$new_invitation->fill($invitation);
$new_invitation->invoice_id = $invoice->id; $new_invitation->invoice_id = $invoice->id;
$new_invitation->client_contact_id = $this->decodePrimaryKey($invitation['client_contact_id']); $new_invitation->client_contact_id = $this->decodePrimaryKey($invitation['client_contact_id']);
$new_invitation->save(); $new_invitation->save();