Tests for merging clients
This commit is contained in:
parent
b95b80fc32
commit
70b4529076
1 changed files with 3 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue