From 0b52c43e05de3e366198779c775f920b36335763 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 May 2017 11:35:12 +0200 Subject: [PATCH] Fix bad selection of progress when not known --- htdocs/core/class/html.formother.class.php | 6 ++++-- htdocs/projet/class/task.class.php | 6 +++--- htdocs/projet/tasks.php | 4 ++-- htdocs/projet/tasks/task.php | 6 +++--- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 66e624e96b9..2ee6b18a44f 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -274,15 +274,17 @@ class FormOther * @param int $increment increment value * @param int $start start value * @param int $end end value + * @param int $showempty Add also an empty line * @return string HTML select string */ - function select_percent($selected=0,$htmlname='percent',$disabled=0,$increment=5,$start=0,$end=100) + function select_percent($selected=0,$htmlname='percent',$disabled=0,$increment=5,$start=0,$end=100,$showempty=0) { $return = '