From 3a32b08512fae4aaa9b02801d4080ef4cd1cab05 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 31 Aug 2015 15:52:54 +0200 Subject: [PATCH] Fix filter on opportunity status --- htdocs/core/class/html.formprojet.class.php | 6 ++--- htdocs/langs/en_US/main.lang | 1 + htdocs/projet/list.php | 27 ++++++++++++--------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/htdocs/core/class/html.formprojet.class.php b/htdocs/core/class/html.formprojet.class.php index d51516359ad..4e6b7407dca 100644 --- a/htdocs/core/class/html.formprojet.class.php +++ b/htdocs/core/class/html.formprojet.class.php @@ -521,7 +521,7 @@ class FormProjets * @param int $useshortlabel Use short label * @return int|string The HTML select list of element or '' if nothing or -1 if KO */ - function selectOpportunityStatus($htmlname,$preselected=0,$showempty=1,$useshortlabel=0) + function selectOpportunityStatus($htmlname,$preselected=0,$showempty=1,$useshortlabel=0,$showallnone=0) { global $conf, $langs; @@ -530,8 +530,6 @@ class FormProjets $sql.= " WHERE active = 1"; $sql.= " ORDER BY position"; - dol_syslog(get_class($this).'::selectOpportunityStatus', LOG_DEBUG); - $resql=$this->db->query($sql); if ($resql) { @@ -541,6 +539,8 @@ class FormProjets { $sellist = '