Fix: manquait global

This commit is contained in:
Regis Houssin 2006-10-23 10:23:56 +00:00
parent 212ee98787
commit 34a5401985

View File

@ -715,7 +715,7 @@ class Form
function select_produits($selected='',$htmlname='productid',$filtretype='',$limit=20,$price_level=0)
{
global $langs,$conf,$user;
if ($conf->use_ajax && $conf->PRODUIT_USE_SEARCH_TO_SELECT)
if ($conf->use_ajax && $conf->global->PRODUIT_USE_SEARCH_TO_SELECT)
{
print $langs->trans("Ref").':<input type="text" size="8" name="ajkeyref'.$htmlname.'" id="ajkeyref'.$htmlname.'">&nbsp; &nbsp;';
print $langs->trans("Label").':<input type="text" size="16" name="ajkeylabel'.$htmlname.'" id="ajkeylabel'.$htmlname.'">';