fix ajax
This commit is contained in:
parent
c0c6047538
commit
cb152b22df
@ -172,7 +172,11 @@ class pdf_standard extends ModelePDFProduct
|
||||
// Load traductions files required by page
|
||||
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "products", "orders", "deliveries"));
|
||||
|
||||
$nblines = count($object->lines);
|
||||
if (is_array($object->lines)) {
|
||||
$nblines = count($object->lines);
|
||||
} else {
|
||||
$nblines = 0;
|
||||
}
|
||||
|
||||
if ($conf->product->dir_output)
|
||||
{
|
||||
|
||||
@ -191,7 +191,8 @@ if (!empty($action) && $action == 'fetch' && !empty($id))
|
||||
'pricebasetype' => $outpricebasetype,
|
||||
'tva_tx' => $outtva_tx,
|
||||
'qty' => $outqty,
|
||||
'discount' => $outdiscount);
|
||||
'discount' => $outdiscount,
|
||||
'array_option'=>$object->array_options);
|
||||
}
|
||||
|
||||
echo json_encode($outjson);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user