Fixed bug #15551: [IRRE] Open all child records when opening parent records (Thanks...
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 29 Oct 2010 18:38:11 +0000 (18:38 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 29 Oct 2010 18:38:11 +0000 (18:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9228 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms_inline.php

index 2b87684..88eb71f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2010-10-29  Christian Kuhn  <lolli@schwarzbu.ch>
 
+       * Fixed bug #15551: [IRRE] Open all child records when opening parent records (Thanks to Sebastian Fischer)
        * Fixed bug #15042: Accessing BE in fresh install fails with "No database selected" (Thanks to Lars Peipmann)
        * Fixed bug #16140: [reports] PHP warning on missing array in reports system extension (Thanks to Rudi Meyer)
        * Added feature #16137: [em] Task to update extension list
index 99b0751..dcfe224 100644 (file)
@@ -393,13 +393,14 @@ class t3lib_TCEforms_inline {
                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) {