Complete option MAIN_FREE_PRODUCT_CHECKED_BY_DEFAULT

This commit is contained in:
Laurent Destailleur 2022-02-11 18:19:50 +01:00
parent b623b88674
commit eff2fc1e9e

View File

@ -1106,13 +1106,13 @@ class Form
}
print '<option value="0"';
if (0 == $selected) {
if (0 == $selected || getDolGlobalString('MAIN_FREE_PRODUCT_CHECKED_BY_DEFAULT') == 'product') {
print ' selected';
}
print '>'.$langs->trans("Product");
print '<option value="1"';
if (1 == $selected) {
if (1 == $selected || getDolGlobalString('MAIN_FREE_PRODUCT_CHECKED_BY_DEFAULT') == 'service') {
print ' selected';
}
print '>'.$langs->trans("Service");