fixed access to propal array
This commit is contained in:
parent
bc2e095dec
commit
3c5b385444
1 changed files with 3 additions and 2 deletions
|
|
@ -336,8 +336,9 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||
$object->fetchObjectLinked('', '', '', '');
|
||||
//print_r($object->linkedObjects['propal']); exit;
|
||||
|
||||
if (isset($object->linkedObjects['propal'][0])) {
|
||||
$propal_object = $object->linkedObjects['propal'][0];
|
||||
$propal_object = $object->linkedObjects['propal'];
|
||||
if (isset($propal_object) && sizeof($propal_object)>0) {
|
||||
$propal_object = array_values($object->linkedObjects['propal'])[0];
|
||||
} else {
|
||||
$propal_object = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue