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:
parent
069d2b99c6
commit
d77c662ee9
@ -24,7 +24,7 @@ class InvoiceInvitation extends BaseModel {
|
||||
use Inviteable;
|
||||
|
||||
protected $fillable = [
|
||||
'key',
|
||||
//'key',
|
||||
//'client_contact_id',
|
||||
];
|
||||
|
||||
|
@ -86,7 +86,7 @@ class InvoiceRepository extends BaseRepository {
|
||||
}
|
||||
|
||||
$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->client_contact_id = $this->decodePrimaryKey($invitation['client_contact_id']);
|
||||
$new_invitation->save();
|
||||
|
Loading…
Reference in New Issue
Block a user