From 5b6913baf356f0647bf422094e7b2a167e103af8 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 17 Jul 2014 12:40:08 +0000 Subject: [PATCH] use self::get_id on multiple selects and radio AND regard its output-format --- etemplate/inc/class.etemplate.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 796731995c..1e79815c08 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -1423,8 +1423,8 @@ class etemplate extends boetemplate if ($multiple) { // add the set_val to the id to make it unique - $options = str_replace('id="'.self::get_id($form_name).'"', - 'id="'.self::get_id(substr($form_name,0,-2)."[$set_val]"), $options); + $options = str_replace(self::get_id($form_name), + self::get_id(substr($form_name,0,-2)."[$set_val]"), $options); } $html .= html::input($form_name,$set_val,'checkbox',$options); @@ -1451,8 +1451,8 @@ class etemplate extends boetemplate $options .= ' checked="checked"'; } // add the set_val to the id to make it unique - $options = str_replace('id="'.self::get_id($form_name).'"', - 'id="'.self::get_id(substr($form_name,0,-2)."[$set_val]"), $options); + $options = str_replace(self::get_id($form_name), + self::get_id($form_name."[$set_val]"), $options); if ($readonly) {