allow to override the id of a widget

This commit is contained in:
Ralf Becker 2005-06-12 12:31:05 +00:00
parent 46ef4a579c
commit 0cde45389d

View File

@ -763,7 +763,7 @@
} }
if ($form_name != '') if ($form_name != '')
{ {
$options = "id=\"$form_name\" $options"; $options = 'id="'.($cell['id'] ? $cell['id'] : $form_name).'" '.$options;
} }
list($type,$sub_type) = explode('-',$cell['type']); list($type,$sub_type) = explode('-',$cell['type']);
switch ($type) switch ($type)