mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Tests for merging clients
This commit is contained in:
parent
b95b80fc32
commit
70b4529076
@ -67,12 +67,11 @@ class Merge extends AbstractService
|
||||
return $client_contact->email == $contact->email;
|
||||
});
|
||||
|
||||
if(!$exist)
|
||||
if($exist)
|
||||
{
|
||||
nlog("doesn't exist - merging");
|
||||
$contact->client_id = $this->client->id;
|
||||
$contact->delete();
|
||||
$contact->save();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user