mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Minor fixes
This commit is contained in:
parent
9c5253cd1b
commit
31aa5eb8c9
@ -85,7 +85,9 @@ class ClientContactRepository extends BaseRepository
|
||||
if (array_key_exists('password', $contact) && strlen($contact['password']) > 1 && strlen($update_contact->email) > 3) { //updating on a blank contact email will cause large table scanning
|
||||
$update_contact->password = Hash::make($contact['password']);
|
||||
|
||||
$client->company->client_contacts()->where('email', $update_contact->email)->cursor()
|
||||
$client->company
|
||||
->client_contacts()
|
||||
->where('email', $update_contact->email)->cursor()
|
||||
->each(function ($saveable_contact) use ($update_contact){
|
||||
$saveable_contact->password = $update_contact->password;
|
||||
$saveable_contact->save();
|
||||
|
Loading…
Reference in New Issue
Block a user