mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 10:08:27 +01:00
Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into 12.0
This commit is contained in:
@@ -8422,7 +8422,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;
|
||||
|
||||
Reference in New Issue
Block a user