diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 2ef140e2ced..98abfebd42e 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2683,9 +2683,14 @@ class Form * @param string $page Page * @param string $selected Id preselected * @param string $htmlname Name of HTML select + * @param string $filter Optionnal filters criteras + * @param int $showempty Add an empty field + * @param int $showtype Show third party type in combolist (customer, prospect or supplier) + * @param int $forcecombo Force to use combo box + * @param array $event Event options * @return void */ - function form_thirdparty($page, $selected='', $htmlname='socid') + function form_thirdparty($page, $selected='', $htmlname='socid', $filter='',$showempty=0, $showtype=0, $forcecombo=0, $event=array())) { global $langs; @@ -2696,7 +2701,7 @@ class Form print ''; print ''; print ''; print ''; print '
'; - print $this->select_company($selected, $htmlname); + print $this->select_company($selected , $htmlname, $filter,$showempty, $showtype, $forcecombo, $event); print '
';