use self::get_id on multiple selects and radio AND regard its output-format

This commit is contained in:
Klaus Leithoff 2014-07-17 12:34:49 +00:00
parent 38f3e77cb5
commit 3e76fd9570

View File

@ -1317,8 +1317,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);
@ -1345,8 +1345,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)
{