mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for notifications
This commit is contained in:
parent
fa6fa0e6ef
commit
f7860093f5
@ -162,7 +162,7 @@ class PaymentRepository extends BaseRepository {
|
||||
|
||||
if ( ! $is_existing_payment && ! $this->import_mode ) {
|
||||
|
||||
if (array_key_exists('email_receipt', $data) && $data['email_receipt'] == true)
|
||||
if (array_key_exists('email_receipt', $data) && $data['email_receipt'] == 'true')
|
||||
$payment->service()->sendEmail();
|
||||
elseif(!array_key_exists('email_receipt', $data) && $payment->client->getSetting('client_manual_payment_notification'))
|
||||
$payment->service()->sendEmail();
|
||||
|
Loading…
Reference in New Issue
Block a user