The variable $db seems to be never defined.
This commit is contained in:
parent
78eb6ae17d
commit
45c537707f
@ -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
|
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';
|
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->fetch($this->origin_id);
|
||||||
$exp->fetchObjectLinked();
|
$exp->fetchObjectLinked();
|
||||||
if (count($exp->linkedObjectsIds['commande']) > 0)
|
if (count($exp->linkedObjectsIds['commande']) > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user