From 0cde45389ddde2be62f345d663d8e5d3a865c374 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 12 Jun 2005 12:31:05 +0000 Subject: [PATCH] allow to override the id of a widget --- etemplate/inc/class.uietemplate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index 6c79d1d8e0..2090a2fbd8 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -763,7 +763,7 @@ } if ($form_name != '') { - $options = "id=\"$form_name\" $options"; + $options = 'id="'.($cell['id'] ? $cell['id'] : $form_name).'" '.$options; } list($type,$sub_type) = explode('-',$cell['type']); switch ($type)