From 7ef11b2f38a09e1a920b55496065dc4e1f56ad96 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Mar 2015 13:16:59 +0100 Subject: [PATCH] Fix selected attribute not set correctly --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 6d83561e2a9..c909df601f8 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4303,7 +4303,7 @@ class Form } else { - $selected=($useempty?'':' selected="selected"'); + $selected=(($useempty && $value != '0' && $value != 'no')?'':' selected="selected"'); $resultyesno .= ''."\n"; $resultyesno .= ''."\n"; }