From 11d0e8caec749a93c3a901f77e2ea7801f128d9c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 14 Oct 2009 19:00:16 +0000 Subject: [PATCH] "allow to specify an addtional option for each widget in a 1:N relation" --- etemplate/inc/class.historylog_widget.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.historylog_widget.inc.php b/etemplate/inc/class.historylog_widget.inc.php index 5afeb4935d..ed1377fc7f 100644 --- a/etemplate/inc/class.historylog_widget.inc.php +++ b/etemplate/inc/class.historylog_widget.inc.php @@ -84,7 +84,9 @@ class historylog_widget $value = explode(bo_tracking::ONE2N_SEPERATOR,$value); foreach($type as $n => $t) { - $child = etemplate::empty_cell($t,$cell['name']."[$n]",array('readonly' => true,'no_lang' => true)); + $opt = ''; + list($t,$opt) = explode(':',$t); + $child = etemplate::empty_cell($t,$cell['name']."[$n]",array('readonly' => true,'no_lang' => true,'size' => $opt)); etemplate::add_child($cell,$child); unset($child); }