Merge pull request #12549 from frederic34/patch-11

The variable $db seems to be never defined.
This commit is contained in:
Laurent Destailleur 2019-11-30 01:26:56 +01:00 committed by GitHub
commit 30f1ce0d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1054,7 +1054,7 @@ class Contrat extends CommonObject
if ($originforcontact == 'shipping') // shipment and order share the same contacts. If creating from shipment we take data of order
{
require_once DOL_DOCUMENT_ROOT.'/expedition/class/expedition.class.php';
$exp = new Expedition($db);
$exp = new Expedition($this->db);
$exp->fetch($this->origin_id);
$exp->fetchObjectLinked();
if (count($exp->linkedObjectsIds['commande']) > 0)