Skip to content

Commit c68dae8

Browse files
committed
FIX: mass action create validated invoices from order list does not take care of PDF settings.
1 parent c0db33c commit c68dae8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

htdocs/commande/list.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,13 @@
569569
// Call action to build doc
570570
$savobject = $object;
571571
$object = $objecttmp;
572+
573+
// To be sure vars is defined
574+
$hidedetails = !empty($hidedetails) ? $hidedetails : (getDolGlobalString('MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS') ? 1 : 0);
575+
$hidedesc = !empty($hidedesc) ? $hidedesc : (getDolGlobalString('MAIN_GENERATE_DOCUMENTS_HIDE_DESC') ? 1 : 0);
576+
$hideref = !empty($hideref) ? $hideref : (getDolGlobalString('MAIN_GENERATE_DOCUMENTS_HIDE_REF') ? 1 : 0);
577+
$moreparams = !empty($moreparams) ? $moreparams : null;
578+
572579
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
573580
$object = $savobject;
574581
}

0 commit comments

Comments
 (0)