--- Desktop\class.t3lib_tceforms.php Mon Jan 24 16:41:06 2005 +++ Desktop\class.t3lib_tceformsFIX.php Mon Jan 24 16:41:19 2005 @@ -1627,7 +1627,7 @@ * @param [type] $tRows: ... * @return [type] ... */ - function getSingleField_typeFlex_draw($dataStruct,$editData,$cmdData,$table,$field,$row,&$PA,$formPrefix='',$level=0,$tRows=array()) { + function getSingleField_typeFlex_draw($dataStruct,$editData,$cmdData,$table,$field,$row,&$PA,$formPrefix='',$level=0,$tRows=array(),$existsNext=0) { // Data Structure array must be ... and array of course... if (is_array($dataStruct)) { @@ -1678,7 +1678,8 @@ $PA, $formPrefix.'['.$key.'][el]['.$cc.']', $level+1, - $tRows + $tRows, + isset($editData[$key]['el'][$cc+1]) ); } } @@ -1700,19 +1701,35 @@ $PA, $formPrefix.'['.$key.'][el]['.($cc+1).']', $level+1, - $tRows + $tRows, + isset($editData[$key]['el'][$cc+2]) ); } } } else { + $itemNo = preg_replace('/.*([0-9]+)\]$/','\\1',$formPrefix); // Put row together $tRows[]=' '. - ''. + + ''. + + '  '. + + ($itemNo>1?'':''). + + ($existsNext?'':''). + + '  '. + + ($itemNo>1?'':''). + + ($existsNext?'':''). + $rowCells['title'].' '.$rowCells['formEl'].' '; - + $tRows = $this->getSingleField_typeFlex_draw( $value['el'], $editData[$key]['el'],