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

Merge pull request #4317 from beganovich/v5-pass-correct-company

(v5) Pass correct company to WebhookHandler for invoices
This commit is contained in:
Benjamin Beganović 2020-11-17 13:29:30 +01:00 committed by GitHub
commit eb9e1c07e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ class InvoiceObserver
*/
public function created(Invoice $invoice)
{
WebhookHandler::dispatch(Webhook::EVENT_CREATE_INVOICE, $invoice, $invoice->expense);
WebhookHandler::dispatch(Webhook::EVENT_CREATE_INVOICE, $invoice, $invoice->company);
}
/**