mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor Fixes
This commit is contained in:
parent
e2a6cd65cc
commit
ecdd73fbcc
@ -65,7 +65,9 @@ class ContactRegisterController extends Controller
|
||||
|
||||
$client_contact->client_id = $client->id;
|
||||
$client_contact->is_primary = true;
|
||||
$client_contact->password = Hash::make($data['password']);
|
||||
|
||||
if(array_key_exists('password', $data))
|
||||
$client_contact->password = Hash::make($data['password']);
|
||||
|
||||
$client_contact->save();
|
||||
|
||||
|
@ -386,6 +386,9 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
} else
|
||||
$error = $e->getMessage();
|
||||
|
||||
if(!$this->payment_hash)
|
||||
throw new PaymentFailed($error, $e->getCode());
|
||||
|
||||
$amount = array_sum(array_column($this->payment_hash->invoices(), 'amount')) + $this->payment_hash->fee_total;
|
||||
|
||||
$this->sendFailureMail($error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user