Merge pull request #19721 from grandoc/new_branch_01_01_2022

Fix : Fatal error: Uncaught Error: Call to a member function deleteFr…
This commit is contained in:
Laurent Destailleur 2022-01-06 16:04:18 +01:00 committed by GitHub
commit 79fbe7488e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1460,6 +1460,7 @@ class Expedition extends CommonObject
// delete batch expedition line
if (!$error) {
$shipmentlinebatch = new ExpeditionLineBatch($this->db);
if ($shipmentlinebatch->deleteFromShipment($this->id) < 0) {
$error++; $this->errors[] = "Error ".$this->db->lasterror();
}