Update expedition.class.php

This commit is contained in:
Frédéric FRANCE 2025-01-28 14:32:09 +01:00 committed by GitHub
parent b647b4dc3f
commit 4b23a78f7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1609,6 +1609,13 @@ class Expedition extends CommonObject
$error++;
}
if (!$error) {
// Delete linked contacts
$res = $this->delete_linked_contact();
if ($res < 0) {
$error++;
}
}
if (!$error) {
$sql = "DELETE FROM ".MAIN_DB_PREFIX."expedition";
$sql .= " WHERE rowid = ".((int) $this->id);