FIX module builder template setup.php for default doc model.

This commit is contained in:
Francis Appels 2023-01-05 11:13:11 +01:00
parent 8a42999bda
commit ffc314d1a7

View File

@ -530,7 +530,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Default // Default
print '<td class="center">'; print '<td class="center">';
$constforvar = 'MYMODULE_'.strtoupper($myTmpObjectKey).'_ADDON'; $constforvar = 'MYMODULE_'.strtoupper($myTmpObjectKey).'_ADDON_PDF';
if (getDolGlobalString($constforvar) == $name) { if (getDolGlobalString($constforvar) == $name) {
//print img_picto($langs->trans("Default"), 'on'); //print img_picto($langs->trans("Default"), 'on');
// Even if choice is the default value, we allow to disable it. Replace this with previous line if you need to disable unset // Even if choice is the default value, we allow to disable it. Replace this with previous line if you need to disable unset