From 1c9ccc14425847936ef582afb6d1d0d30a1b1d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josep=20Llu=C3=ADs?= Date: Fri, 7 Dec 2018 17:28:31 +0100 Subject: [PATCH] Fix: add ID property to select objects Add ID property to select objects I.e: id="select_'.$htmlname.'" --- htdocs/core/class/html.form.class.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 8ba38b81edb..8fc2522e80a 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -18,7 +18,8 @@ * Copyright (C) 2014 Alexandre Spangaro * Copyright (C) 2018 Ferran Marcet * Copyright (C) 2018 Frédéric France - * Copyright (C) 2018 Nicolas ZABOURI + * Copyright (C) 2018 Nicolas ZABOURI + * Copyright (C) 2018 Josep Lluis Amador * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -993,7 +994,7 @@ class Form $this->load_cache_types_fees(); - print ''; if ($showempty) { print ''; $num = $this->db->num_rows($resql); $i = 0; @@ -3119,7 +3120,7 @@ class Form $this->loadCacheInputReason(); - print ''; if ($addempty) print ''; foreach($this->cache_demand_reason as $id => $arraydemandreason) { @@ -3316,7 +3317,7 @@ class Form $return=''; - $return.= ''; $options = array( 'HT'=>$langs->trans("HT"), 'TTC'=>$langs->trans("TTC") @@ -5398,7 +5399,7 @@ class Form if ($typehour=='select' ) { - $retstring.=''; for ($hour = 0; $hour < 25; $hour++) // For a duration, we allow 24 hours { $retstring.='