Update pdf.lib.php
This commit is contained in:
parent
6e1702c1a5
commit
7eb003c684
@ -2129,7 +2129,7 @@ function pdf_getLinkedObjects($object,$outputlangs)
|
|||||||
{
|
{
|
||||||
$elementobject->fetchObjectLinked(null, '', null, '', 'OR', 1, 'sourcetype', 0);
|
$elementobject->fetchObjectLinked(null, '', null, '', 'OR', 1, 'sourcetype', 0);
|
||||||
if (! empty($elementobject->linkedObjectsIds['commande'])){
|
if (! empty($elementobject->linkedObjectsIds['commande'])){
|
||||||
dol_include_once('/commande/commande.class.php');
|
include_once DOL_DOCUMENT_ROOT.'/commande/commande.class.php';
|
||||||
$order = new Commande($object->db);
|
$order = new Commande($object->db);
|
||||||
$ret = $order->fetch(reset($elementobject->linkedObjectsIds['commande']));
|
$ret = $order->fetch(reset($elementobject->linkedObjectsIds['commande']));
|
||||||
if ($ret < 1){ $order=null; }
|
if ($ret < 1){ $order=null; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user