From bbf34bfda8c3007b9e66dfe77a1e0811f34af80d Mon Sep 17 00:00:00 2001 From: De Coninck Laurent Date: Mon, 6 Feb 2017 18:57:56 +0100 Subject: [PATCH] [expense type deactivate] [#6363] Expense type deactivated but list When an expense type is disabled in dictionaries, it's always displayed and selectable in expense note module, when we create a new line in an expense note. --- htdocs/expensereport/class/expensereport.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index 9a2cd6728e8..487515dcb99 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -2052,6 +2052,7 @@ function select_type_fees_id($selected='',$htmlname='type',$showempty=0) } $sql = "SELECT c.id, c.code, c.label as type FROM ".MAIN_DB_PREFIX."c_type_fees as c"; + $sql.= " WHERE c.active = 1"; $sql.= " ORDER BY c.label ASC"; $resql=$db->query($sql); if ($resql)