Change place of deleteobjectlinked in deletecommon function

This commit is contained in:
atm-lena 2022-12-15 15:09:50 +01:00
parent 67c64f7505
commit eff01374b1

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) {
@ -9472,12 +9478,6 @@ abstract class CommonObject
}
}
// Delete linked object
$res = $this->deleteObjectLinked();
if ($res < 0) {
$error++;
}
// Commit or rollback
if ($error) {
$this->db->rollback();