diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 838894fc851..004153e2fdc 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1721,7 +1721,7 @@ abstract class CommonObject * @param string $clause OR, AND clause * @return void */ - function fetchObjectLinked($sourceid='',$sourcetype='',$targetid='',$targettype='',$clause='OR') + function fetchObjectLinked($sourceid='',$sourcetype='',$targetid='',$targettype='',$clause='OR') { global $conf; diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php index 559cc794ac7..3651d106951 100644 --- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php +++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php @@ -391,7 +391,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures } // Fetch info for linked propal - $linked_propal = $object->fetchObjectLinked('','','',''); + $object->fetchObjectLinked('','','',''); //print_r($object->linkedObjects['propal']); exit; $propal_object = $object->linkedObjects['propal'][0];