[BUGFIX] IRRE visibility check (RTE) for new records 43/37943/5
authorAndreas Allacher <andreas.allacher@gmx.at>
Thu, 19 Mar 2015 09:30:46 +0000 (10:30 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 2 Apr 2015 12:06:47 +0000 (14:06 +0200)
allElementsAreDisplayed checks for panel-visible class
to determine if an inline record has all elements visible.
This class is now added to a new record as well to ensure
RTE is working properly.

Change-Id: I9b91c7ea16c9f56ca595231dd079fc7771053315
Resolves: #65837
Releases: master
Reviewed-on: http://review.typo3.org/37943
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/backend/Classes/Form/Element/InlineElement.php

index 6b8ed17..e327686 100644 (file)
@@ -457,10 +457,8 @@ class InlineElement {
                                        $fields .= '<input type="input" name="' . $this->prependFormFieldNames . $appendFormFieldNames . '[hidden]" value="' . $rec['hidden'] . '" />';
                                }
                        }
-                       // If this record should be shown collapsed
-                       if (!$isExpanded) {
-                               $class = 'panel-collapsed';
-                       }
+                       // If this record should be shown or collapsed
+                       $class = $isExpanded ? 'panel-visible' : 'panel-collapsed';
                }
                if ($config['renderFieldsOnly']) {
                        $out = $fields . $combination;