- fixed problem with auto-repeated rows not working everytime

- allow for first name-parts for select-options
This commit is contained in:
Ralf Becker 2003-10-26 19:26:58 +00:00
parent 07da6bbec9
commit 554a3e93bb

View File

@ -334,9 +334,9 @@
{
if (!(list($r_key) = each($this->data))) // no further row
{
if (!($this->autorepeat_idx($cols['A'],0,$r,$idx,$idx_cname) && $idx_cname) &&
!($this->autorepeat_idx($cols['B'],1,$r,$idx,$idx_cname) && $idx_cname) ||
!$this->isset_array($content,$idx))
if (!(($this->autorepeat_idx($cols['A'],0,$r,$idx,$idx_cname) && $idx_cname) ||
($this->autorepeat_idx($cols['B'],1,$r,$idx,$idx_cname) && $idx_cname)) ||
!$this->isset_array($content,$idx_cname))
{
break; // no auto-row-repeat
}
@ -784,6 +784,10 @@
{
$sels += $sel_options[$org_name];
}
elseif (isset($sel_options[$name_parts[0]]) && is_array($sel_options[$name_parts[0]]))
{
$sels += $sel_options[$name_parts[0]];
}
}
if (isset($content["options-$name"]))
{