diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index d42bfcbeb5a..d2fb93000a9 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -716,12 +716,13 @@ class FormCompany } } print "\n"; + print ajax_combobox($htmlname); return $firstCompany; } else { dol_print_error($this->db); - print 'Error sql'; + return 0; } } }