Project

General

Profile

Feature #23445 » class.t3lib_tceforms_inline.diff

Administrator Admin, 2010-08-25 11:41

View differences:

class.t3lib_tceforms_inline.php (Arbeitskopie)
if (!$isVirtualRecord) {
// Get configuration:
$collapseAll = (isset($config['appearance']['collapseAll']) && $config['appearance']['collapseAll']);
$collapseNone = (isset($config['appearance']['collapseNone']) && $config['appearance']['collapseNone']);
$ajaxLoad = (isset($config['appearance']['ajaxLoad']) && !$config['appearance']['ajaxLoad']) ? false : true;
if ($isNewRecord) {
// show this record expanded or collapsed
$isExpanded = (!$collapseAll ? 1 : 0);
$isExpanded = ($collapseNone || (!$collapseAll ? 1 : 0));
} else {
$isExpanded = ($config['renderFieldsOnly'] || (!$collapseAll && $this->getExpandedCollapsedState($foreign_table, $rec['uid'])));
$isExpanded = ($collapseNone || $config['renderFieldsOnly'] || (!$collapseAll && $this->getExpandedCollapsedState($foreign_table, $rec['uid'])));
}
// Render full content ONLY IF this is a AJAX-request, a new record, the record is not collapsed or AJAX-loading is explicitly turned off
if ($isNewRecord || $isExpanded || !$ajaxLoad) {
(1-1/3)