Bug #17653 » 0006456.patch

Administrator Admin, 2007-10-30 16:32

View differences:

t3lib/class.t3lib_tceforms_inline.php (Arbeitskopie)
325 325

  
326 326
		$header = $this->renderForeignRecordHeader($parentUid, $foreign_table, $rec, $config);
327 327
		$combination = $this->renderCombinationTable($rec, $appendFormFieldNames, $config);
328
		$fields = $this->fObj->getMainFields($foreign_table,$rec);
328
		$fields = $this->renderMainFields($foreign_table, $rec);
329 329
		$fields = $this->wrapFormsSection($fields);
330 330

  
331 331
		if ($isNewRecord) {
......
362 362

  
363 363

  
364 364
	/**
365
	 * Wrapper for TCEforms::getMainFields().
366
	 *
367
	 * @param	string		$table: The table name
368
	 * @param	array		$row: The record to be rendered
369
	 * @return	string		The rendered form
370
	 */
371
	function renderMainFields($table, $row) {
372
			// The current render depth of t3lib_TCEforms:
373
		$depth = $this->fObj->renderDepth;
374
			// If there is some information about already rendered palettes of our parent, store this info:
375
		if (isset($this->fObj->palettesRendered[$depth][$table])) {
376
			$palettesRendered = $this->fObj->palettesRendered[$depth][$table];
377
		}
378
			// Render the form:
379
		$content = $this->fObj->getMainFields($table, $row, $depth);
380
			// If there was some info about rendered palettes stored, write it back for our parent:
381
		if (isset($palettesRendered)) {
382
			$this->fObj->palettesRendered[$depth][$table] = $palettesRendered;
383
		}
384
		return $content;
385
	}
386

  
387

  
388
	/**
365 389
	 * Renders the HTML header for a foreign record, such as the title, toggle-function, drag'n'drop, etc.
366 390
	 * Later on the command-icons are inserted here.
367 391
	 *
......
604 628
			}
605 629

  
606 630
				// get the TCEforms interpretation of the TCA of the child table
607
			$out = $this->fObj->getMainFields($comboConfig['foreign_table'], $comboRecord);
631
			$out = $this->renderMainFields($comboConfig['foreign_table'], $comboRecord);
608 632
			$out = $this->wrapFormsSection($out, array(), array('class' => 'wrapperAttention'));
609 633

  
610 634
				// if this is a new record, add a pid value to store this record and the pointer value for the intermediate table
(2-2/2)