[BUGFIX] Fix QueryView calling undefined method formWidth() 64/45964/2
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 15 Jan 2016 20:10:33 +0000 (21:10 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 15 Jan 2016 20:15:15 +0000 (21:15 +0100)
Remove call to formWidth.

Change-Id: I0cdc8ca07917d1a8a7fab52d7bc19294739db6d1
Resolves: #72750
Releases: master
Reviewed-on: https://review.typo3.org/45964
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Database/QueryView.php

index 643d211..193bdd9 100644 (file)
@@ -427,7 +427,7 @@ class QueryView
                     $rowArr[] = $this->csvValues($row, ',', '"', $GLOBALS['TCA'][$table], $table);
                 }
                 if (!empty($rowArr)) {
-                    $out .= '<textarea name="whatever" rows="20" wrap="off"' . $GLOBALS['SOBE']->getModuleTemplate()->formWidth($this->formW) . ' class="text-monospace">' . htmlspecialchars(implode(LF, $rowArr)) . '</textarea>';
+                    $out .= '<textarea name="whatever" rows="20" wrap="off" class="text-monospace" style="width:100%">' . htmlspecialchars(implode(LF, $rowArr)) . '</textarea>';
                     if (!$this->noDownloadB) {
                         $out .= '<br><input class="btn btn-default" type="submit" name="download_file" value="Click to download file" onClick="window.location.href=\'' . $this->downloadScript . '\';">';
                     }