|
@@ -39,6 +39,7 @@ $langs->loadLangs(array('stocks', 'other', 'productbatch'));
|
|
|
|
|
|
// Get parameters
|
|
|
$id = GETPOST('id', 'int');
|
|
|
+$lineid = GETPOST('lineid', 'int');
|
|
|
$action = GETPOST('action', 'aZ09');
|
|
|
$confirm = GETPOST('confirm', 'alpha');
|
|
|
$cancel = GETPOST('cancel', 'aZ09');
|
|
@@ -568,7 +569,7 @@ if ($action != 'presend') {
|
|
|
$urlsource = $_SERVER["PHP_SELF"]."?id=".$object->id;
|
|
|
$genallowed = $usercanread; // If you can read, you can build the PDF to read content
|
|
|
$delallowed = $usercancreate; // If you can create/edit, you can remove a file on card
|
|
|
- print $formfile->showdocuments('product_batch', $objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 0, 0, 0, 28, 0, '', 0, '', $langs->default_lang, '', $object);
|
|
|
+ print $formfile->showdocuments('product_batch', $objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 0, 0, 0, 28, 0, '', 0, '', (empty($object->default_lang) ? '' : $object->default_lang), '', $object);
|
|
|
}
|
|
|
|
|
|
print '</div><div class="fichehalfright">';
|