Merge pull request #23166 from atm-lena/16.0_FIX_DeleteMOAndLinks

Delete MO :  object's links must be deleted
This commit is contained in:
Laurent Destailleur 2022-12-17 01:46:42 +01:00 committed by GitHub
commit f1d83b695a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9455,6 +9455,12 @@ abstract class CommonObject
}
}
// Delete linked object
$res = $this->deleteObjectLinked();
if ($res < 0) {
$error++;
}
if (!$error && !empty($this->isextrafieldmanaged)) {
$result = $this->deleteExtraFields();
if ($result < 0) {