[BUGFIX] Store boolean value properly in Install Tool (again) 84/44584/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Fri, 6 Nov 2015 16:23:47 +0000 (17:23 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 6 Nov 2015 16:40:42 +0000 (17:40 +0100)
The refactoring moved the hidden field behind the actual
checkbox field, so all booleans got stored as 0

Resolves: #71377
Releases: master
Change-Id: I7cc89ebee419f4f6780f0f125086ee335d9bae7e
Reviewed-on: https://review.typo3.org/44584
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Resources/Private/Partials/Action/Tool/AllConfiguration/SubSection.html

index c77bb80..65b6089 100644 (file)
                                                        <div class="checkbox">
                                                                <label>
                                                                        <input
+                                                                                       type="hidden"
+                                                                                       value="0"
+                                                                                       name="install[values][{sectionName}][{item.key}]"
+                                                                       />
+                                                                       <input
                                                                                        type="checkbox"
                                                                                        value="1"
                                                                                        name="install[values][{sectionName}][{item.key}]"
                                                                        {item.description -> f:format.raw()}
                                                                </label>
                                                        </div>
-                                                       <input
-                                                                       type="hidden"
-                                                                       value="0"
-                                                                       name="install[values][{sectionName}][{item.key}]"
-                                                       />
                                                </f:if>
 
                                        <f:if condition="{item.type} == 'input'">