Update pdf.lib.php
This commit is contained in:
parent
7eb003c684
commit
b44d6744f9
@ -2132,7 +2132,7 @@ function pdf_getLinkedObjects($object,$outputlangs)
|
|||||||
include_once DOL_DOCUMENT_ROOT.'/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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (! is_object($order))
|
if (! is_object($order))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user