[BUGFIX] Fix broken form wizard with MSIE 32/34032/2
authorRomain Leleu <rolel@smile.fr>
Wed, 20 Aug 2014 14:08:37 +0000 (16:08 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 12 Nov 2014 20:08:23 +0000 (21:08 +0100)
When "Behavior / Confirmation page" checkbox is checked in a
form content, MSIE fails to show the fields in right panel.
Hovering right panel's fields shows an empty blue box and an empty tooltip.
This bug only occurs when reloading forms with the checkbox enabled
or when enabling the checkbox.

This patch fixes a JS function that sets the value and then refreshes
the right panel when clicking on one of this kind of elements.

Resolves: #59305
Releases: master, 6.2
Change-Id: I7e4cf72cd06a92a4dbdc929b214c79ca6dcd52b2
Reviewed-on: http://review.typo3.org/34032
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Elements.js

index d20e373..f92c0e9 100644 (file)
@@ -245,9 +245,11 @@ TYPO3.Form.Wizard.Elements = Ext.extend(Ext.Container, {
        setConfigurationValue: function(formConfiguration) {
                Ext.merge(this.configuration, formConfiguration);
                TYPO3.Form.Wizard.Helpers.History.setHistory();
-               this.rendered = false;
-               this.render();
-               this.doLayout();
+               if (this.xtype != 'typo3-form-wizard-elements-basic-form') {
+                       this.rendered = false;
+                       this.render();
+                       this.doLayout();
+               }
                this.fireEvent('configurationChange', this);
        },