[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)
committerSusanne Moog <typo3@susannemoog.de>
Sat, 20 Aug 2011 09:46:30 +0000 (11:46 +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: Id6424c44978be807c51bcdd842d11761d9aa947e
Resolves: #28455
Branches: 4.6, 4.5
Reviewed-on: http://review.typo3.org/4405
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
typo3/sysext/tstemplate/ts/index.php

index d8e938f..8255697 100644 (file)
@@ -423,7 +423,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;
@@ -554,4 +554,4 @@ $SOBE->clearCache();
 $SOBE->main();
 $SOBE->printContent();
 
-?>
\ No newline at end of file
+?>