From 101df3adf1bd5674e7b926e4c75fdf7d7bdaf75b Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 5 Dec 2017 12:05:18 +0100 Subject: [PATCH] Fix ID problem --- include/lib/icheckbox.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lib/icheckbox.class.php b/include/lib/icheckbox.class.php index 6faa027ef..ff7195fdf 100644 --- a/include/lib/icheckbox.class.php +++ b/include/lib/icheckbox.class.php @@ -26,12 +26,12 @@ require_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; class ICheckBox extends HtmlInput { /*!\brief show the html input of the widget*/ - public function input($p_name=null,$p_value=null) + public function input($p_name=null,$p_value=null,$id="") { $this->name=($p_name==null)?$this->name:$p_name; $this->value=($p_value==null)?$this->value:$p_value; if ( $this->readOnly==true) return $this->display(); - $this->id=($this->id=="")?$this->name:$this->id; + $this->id=($this->id=="")?$this->name:$this->id; $check=( $this->selected==true )?"checked":"unchecked"; $r='