Project

General

Profile

Bug #19117 » 0008991.patch

Administrator Admin, 2009-01-12 18:58

View differences:

t3lib/class.t3lib_tceforms_inline.php (Arbeitskopie)
// get the records related to this inline record
$relatedRecords = $this->getRelatedRecords($table,$field,$row,$PA,$config);
// set the first and last record to the config array
$config['inline']['first'] = $relatedRecords['records'][0]['uid'];
$config['inline']['last'] = $relatedRecords['records'][$relatedRecords['count']-1]['uid'];
$relatedRecordsUids = array_keys($relatedRecords['records']);
$config['inline']['first'] = reset($relatedRecordsUids);
$config['inline']['last'] = end($relatedRecordsUids);
// Tell the browser what we have (using JSON later):
$top = $this->getStructureLevel(0);
(2-2/2)