1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00

Fix for removing payment method

This commit is contained in:
Hillel Coren 2016-07-27 14:38:44 +03:00
parent 0f6555fb55
commit 1e7bedd469

View File

@ -460,7 +460,7 @@ class BasePaymentDriver
->with('payment_methods')
->first();
if ($this->customer) {
if ($this->customer && $this->invitation) {
$this->customer = $this->checkCustomerExists($this->customer) ? $this->customer : null;
}