diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 79ba773ad36..49ee359ef62 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1544,7 +1544,7 @@ class Form print img_picto($langs->trans("Search"), 'search'); } } - print ''; + print 'global->PRODUCT_SEARCH_AUTOFOCUS) ? 'autofocus' : '').' />'; if ($hidelabel == 3) { print img_picto($langs->trans("Search"), 'search'); }