noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 179/219: Fix ID problem


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 179/219: Fix ID problem
Date: Mon, 18 Dec 2017 13:22:59 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 101df3adf1bd5674e7b926e4c75fdf7d7bdaf75b
Author: Dany De Bontridder <address@hidden>
Date:   Tue Dec 5 12:05:18 2017 +0100

    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 6faa027..ff7195f 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='<input type="CHECKBOX" id="'.$this->id.'" 
name="'.$this->name.'"'.' value="'.$this->value.'"';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]