"allow to specify an addtional option for each widget in a 1:N relation"

This commit is contained in:
Ralf Becker 2009-10-14 19:00:16 +00:00
parent 17bd96df7d
commit 11d0e8caec

View File

@ -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);
}