[BUGFIX] "New record" button in Template mod broken
authorJigal van Hemert <jigal@xs4all.nl>
Thu, 18 Aug 2011 09:18:16 +0000 (11:18 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 21 Aug 2011 08:02:53 +0000 (10:02 +0200)
Recent browsers follow HTML5 standards for submitting image input
elements. The result is that the name of the image input element is
not submitted anymore, only the name with the x and y coordinates.
Checking for createExtension_x or createExtension being set makes the
button work again.

Change-Id: Ic8925930f8aee31463666ea70d0b97d5ea717d28
Resolves: #28455
Branches: 4.5
Reviewed-on: http://review.typo3.org/4441
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/tstemplate/ts/index.php

index b9c4a31..64017bc 100644 (file)
@@ -448,7 +448,7 @@ class SC_mod_web_ts_index extends t3lib_SCbase {
        }
 
        function createTemplate($id, $actTemplateId = 0) {
-               if (t3lib_div::_GP('createExtension')) {
+               if (t3lib_div::_GP('createExtension') || t3lib_div::_GP('createExtension_x')) {
                        $tce = t3lib_div::makeInstance('t3lib_TCEmain');
                        /* @var $tce t3lib_TCEmain */
                        $tce->stripslashes_values = 0;