diff --git a/htdocs/core/class/html.formexpensereport.class.php b/htdocs/core/class/html.formexpensereport.class.php index 2f6faab8363..4e64a9356c1 100644 --- a/htdocs/core/class/html.formexpensereport.class.php +++ b/htdocs/core/class/html.formexpensereport.class.php @@ -57,15 +57,16 @@ class FormExpenseReport * @param string $htmlname Name of HTML select * @param int $useempty 1=Add empty line * @param int $useshortlabel Use short labels + * @param string $morecss More CSS * @return string HTML select with status */ - public function selectExpensereportStatus($selected = 0, $htmlname = 'fk_statut', $useempty = 1, $useshortlabel = 0) + public function selectExpensereportStatus($selected = 0, $htmlname = 'fk_statut', $useempty = 1, $useshortlabel = 0, $morecss = '') { global $langs; $tmpep = new ExpenseReport($this->db); - $html = ''."\n"; + + $html .= ajax_combobox($htmlname, array(), 0, 0, 'resolve', ($useempty < 0 ? (string) $useempty : '-1'), $morecss); + return $html; } diff --git a/htdocs/expensereport/list.php b/htdocs/expensereport/list.php index 1bc15aa0020..59f03517777 100644 --- a/htdocs/expensereport/list.php +++ b/htdocs/expensereport/list.php @@ -681,7 +681,7 @@ if (!empty($arrayfields['d.tms']['checked'])) { // Status if (!empty($arrayfields['d.fk_statut']['checked'])) { print '