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='