Fix: javascript error with product in select combo box

This commit is contained in:
Laurent Destailleur 2008-10-01 21:16:35 +00:00
parent c2f3934f4e
commit f31b04c3ce

View File

@ -1045,7 +1045,9 @@ class Form
} }
else else
{ {
print '<select class="flat" name="'.$htmlname.'" onchange="publish_selvalue(this);">'; print '<select class="flat" name="'.$htmlname.'"';
if ($conf->global->PRODUIT_USE_SEARCH_TO_SELECT) print ' onchange="publish_selvalue(this);"';
print '>';
print '<option value="0" selected="true">-- '.$langs->trans("MatchingProducts").' --</option>'; print '<option value="0" selected="true">-- '.$langs->trans("MatchingProducts").' --</option>';
} }
} }