Update expedition.class.php

Clear lines before fech them.
This commit is contained in:
JC Prieto 2019-09-25 12:49:19 +02:00 committed by GitHub
parent db334a3b94
commit 0893926189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,6 +603,8 @@ class Expedition extends CommonObject
$this->location_incoterms = $obj->location_incoterms;
$this->libelle_incoterms = $obj->libelle_incoterms;
$this->lines = array();
$this->db->free($result);
if ($this->statut == self::STATUS_DRAFT) $this->brouillon = 1;