This commit is contained in:
Laurent Destailleur 2022-02-11 18:49:35 +01:00
parent eff2fc1e9e
commit 8000adb694

View File

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