Skip to content

Commit

Permalink
Update expedition.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 authored Jan 28, 2025
1 parent b647b4d commit 4b23a78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions htdocs/expedition/class/expedition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,13 @@ public function delete($user = null, $notrigger = 0, $also_update_stock = false)
$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);
Expand Down

0 comments on commit 4b23a78

Please sign in to comment.