[BUGFIX] Storage doesn't save is_public anymore 25/43325/2
authorNicole Cordes <typo3@cordes.co>
Tue, 15 Sep 2015 11:20:49 +0000 (13:20 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 15 Sep 2015 12:04:00 +0000 (14:04 +0200)
With the style changes in https://review.typo3.org/42984/ the order of
the input fields were change and the value of the checkbox isn't sent
currently. This patch corrects the order to be able to submit the
checkbox value.

Resolves: #69819
Releases: master
Change-Id: I35ddf550fc0f4cd3c79995e6cfa7a5539a19cd1c
Reviewed-on: http://review.typo3.org/43325
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php

index 88d9993..5aaf71a 100644 (file)
@@ -72,10 +72,10 @@ class UserStorageCapabilityService {
                <div class="t3-form-field-item">
                        <div class="checkbox">
                                <label>
+                                       <input name="data[sys_file_storage][{uid}][is_public]" value="0" type="hidden">
                                        <input class="checkbox" value="1" name="data[sys_file_storage][{uid}][is_public]_0" type="checkbox" %s>
                                </label>
                        </div>
-                       <input name="data[sys_file_storage][{uid}][is_public]" value="0" type="hidden">
                </div>';
 
                $content = sprintf($template,