Fix case of delete contact not correctly implemented.

This commit is contained in:
Laurent Destailleur 2020-06-12 02:15:02 +02:00
parent e04557948d
commit 1ba03566dc

View File

@ -8012,7 +8012,11 @@ abstract class CommonObject
$error++;
$this->errors[] = $this->error;
} else {
$result = $this->delete($user);
if (get_class($this) == 'Contact') { // TODO special code because delete() for contact has not been standardized like other delete.
$result = $this->delete();
} else {
$result = $this->delete($user);
}
if ($result < 0) {
$error++;
$this->errors[] = $this->error;