[BUGFIX] Fix undefined property rUri in TableController 34/48334/2
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 27 May 2016 13:38:27 +0000 (15:38 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Fri, 27 May 2016 14:20:16 +0000 (16:20 +0200)
Resolves: #76329
Releases: master,7.6
Change-Id: Ie5320e71aa8ded5b744997b6f1ca71c3542aa2f0
Reviewed-on: https://review.typo3.org/48334
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Controller/Wizard/TableController.php

index 9ccf829..c0a9fab 100644 (file)
@@ -131,8 +131,6 @@ class TableController extends AbstractWizardController
         $this->numNewRows = MathUtility::forceIntegerInRange($this->P['params']['numNewRows'], 1, 50, 5);
         // Textareas or input fields:
         $this->inputStyle = isset($this->TABLECFG['textFields']) ? (bool)$this->TABLECFG['textFields'] : true;
-        // Setting form tag:
-        list($rUri) = explode('#', GeneralUtility::getIndpEnv('REQUEST_URI'));
         $this->tableParsing_delimiter = '|';
         $this->tableParsing_quote = '';
     }
@@ -159,6 +157,7 @@ class TableController extends AbstractWizardController
      */
     public function main()
     {
+        list($rUri) = explode('#', GeneralUtility::getIndpEnv('REQUEST_URI'));
         $this->content .= '<form action="' . htmlspecialchars($rUri) . '" method="post" id="TableController" name="wizardForm">';
         if ($this->P['table'] && $this->P['field'] && $this->P['uid']) {
             $this->content .= '<h2>' . htmlspecialchars($this->getLanguageService()->getLL('table_title')) . '</h2>'