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:
commit
79fbe7488e
@ -1460,6 +1460,7 @@ class Expedition extends CommonObject
|
|||||||
|
|
||||||
// delete batch expedition line
|
// delete batch expedition line
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
|
$shipmentlinebatch = new ExpeditionLineBatch($this->db);
|
||||||
if ($shipmentlinebatch->deleteFromShipment($this->id) < 0) {
|
if ($shipmentlinebatch->deleteFromShipment($this->id) < 0) {
|
||||||
$error++; $this->errors[] = "Error ".$this->db->lasterror();
|
$error++; $this->errors[] = "Error ".$this->db->lasterror();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user