Project

General

Profile

Feature #23445 » 15551_02.diff

Administrator Admin, 2010-10-29 20:54

View differences:

t3lib/class.t3lib_tceforms_inline.php (working copy)
if (!$isVirtualRecord) {
// Get configuration:
$collapseAll = (isset($config['appearance']['collapseAll']) && $config['appearance']['collapseAll']);
$expandAll = (isset($config['appearance']['collapseAll']) && !$config['appearance']['collapseAll']);
$ajaxLoad = (isset($config['appearance']['ajaxLoad']) && !$config['appearance']['ajaxLoad']) ? false : true;
if ($isNewRecord) {
// show this record expanded or collapsed
$isExpanded = (!$collapseAll ? 1 : 0);
$isExpanded = ($expandAll || (!$collapseAll ? 1 : 0));
} else {
$isExpanded = ($config['renderFieldsOnly'] || (!$collapseAll && $this->getExpandedCollapsedState($foreign_table, $rec['uid'])));
$isExpanded = ($config['renderFieldsOnly'] || (!$collapseAll && $this->getExpandedCollapsedState($foreign_table, $rec['uid'])) || $expandAll);
}
// 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) {
(2-2/3)