From 54c0f673c1f510b20b20b3a772b3bf20cd986221 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 8 Sep 2020 12:00:14 +0200 Subject: [PATCH] Debug hidden option MAIN_USE_EXPENSE_IK --- htdocs/core/class/html.form.class.php | 2 +- htdocs/expensereport/card.php | 4 +-- .../class/expensereport.class.php | 25 +++++++++++-------- htdocs/langs/en_US/trips.lang | 2 +- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 80752a2090a..9e6b247d178 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -7622,7 +7622,7 @@ class Form $resql = $db->query($sql); if ($resql) { - $out = ''; if ($useempty) $out .= ''; while ($obj = $db->fetch_object($resql)) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 59584562dff..192cfcdc570 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -2290,7 +2290,7 @@ if ($action == 'create') // Select type print ''; - select_type_fees_id($line->fk_c_type_fees, 'fk_c_type_fees'); + print select_type_fees_id($line->fk_c_type_fees, 'fk_c_type_fees'); print ''; if (!empty($conf->global->MAIN_USE_EXPENSE_IK)) @@ -2449,7 +2449,7 @@ if ($action == 'create') // Select type print ''; - select_type_fees_id($fk_c_type_fees, 'fk_c_type_fees', 1); + print select_type_fees_id($fk_c_type_fees, 'fk_c_type_fees', 1); print ''; if (!empty($conf->global->MAIN_USE_EXPENSE_IK)) diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index e2ea2b377a4..90f063e8ae0 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -2774,12 +2774,14 @@ function select_type_fees_id($selected = '', $htmlname = 'type', $showempty = 0, global $db, $langs, $user; $langs->load("trips"); - print ''; if ($showempty) { - print ''; + $out .= '