Fix case of delete contact not correctly implemented.
This commit is contained in:
parent
e04557948d
commit
1ba03566dc
@ -8011,8 +8011,12 @@ abstract class CommonObject
|
|||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$error++;
|
$error++;
|
||||||
$this->errors[] = $this->error;
|
$this->errors[] = $this->error;
|
||||||
|
} else {
|
||||||
|
if (get_class($this) == 'Contact') { // TODO special code because delete() for contact has not been standardized like other delete.
|
||||||
|
$result = $this->delete();
|
||||||
} else {
|
} else {
|
||||||
$result = $this->delete($user);
|
$result = $this->delete($user);
|
||||||
|
}
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$error++;
|
$error++;
|
||||||
$this->errors[] = $this->error;
|
$this->errors[] = $this->error;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user