diff --git a/lib/base/front/front.class.php b/lib/base/front/front.class.php index a32c400872..55774724ab 100644 --- a/lib/base/front/front.class.php +++ b/lib/base/front/front.class.php @@ -330,7 +330,8 @@ class baseHTML */ static public function hidden($name, $value = "", $attrib = "") { - return "\n"; + $id = str_replace(array('[', ']'), "", $name); + return "\n"; } /** @@ -347,7 +348,8 @@ class baseHTML static public function password($name, $value = "", $attrib = "") { if(stripos($attrib, 'autocomplete') === false) $attrib .= " autocomplete='off'"; - return "\n"; + $id = str_replace(array('[', ']'), "", $name); + return "\n"; } /** @@ -364,6 +366,7 @@ class baseHTML static public function textarea($name, $value = "", $attrib = "") { $id = "id='$name'"; + $id = str_replace(array('[', ']'), "", $id); if(strpos($attrib, 'id=') !== false) $id = ''; return "\n"; } @@ -397,8 +400,9 @@ class baseHTML */ static public function date($name, $value = "", $options = '', $attrib = '') { - $html = "