Update pdf.php

This commit is contained in:
Laurent Destailleur 2021-08-17 16:55:56 +02:00 committed by GitHub
parent 8eba57f722
commit d4c35edef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,10 +389,10 @@ print '</td></tr>';
print '<tr class="oddeven"><td>'.$langs->trans("MAIN_PDF_HIDE_CUSTOMER_CODE");
print '</td><td>';
if ($conf->use_javascript_ajax) {
print ajax_constantonoff('DOC_SHOW_CUSTOMER_CODE');
print ajax_constantonoff('MAIN_PDF_HIDE_CUSTOMER_CODE');
} else {
$arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
print $form->selectarray("DOC_SHOW_CUSTOMER_CODE", $arrval, $conf->global->DOC_SHOW_CUSTOMER_CODE);
print $form->selectarray("MAIN_PDF_HIDE_CUSTOMER_CODE", $arrval, $conf->global->MAIN_PDF_HIDE_CUSTOMER_CODE);
}
print '</td></tr>';