TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692017-02-07T14:19:17ZTYPO3 Forge
Redmine TYPO3 Core - Bug #79662 (New): Fluid caches default view pathshttp://forge.typo3.org/issues/796622017-02-07T14:19:17ZClaus Dueclaus@phpmind.net
<p>The issue can be reproduced as follows:</p>
<p>1) configure (and optionally register) a normal Extbase plugin to call a controller action<br />2) define this plugin as USER function (normal TS to render Extbase) on the PAGE TS object (any typeNum)<br />3) define multiple view paths for the extension containing the plugin<br />4) Install Flux and register a template as CType</p>
<p>Result:</p>
<p>Fluid is asked to return view paths for a the extension name at two different execution points - first, during bootstrapping (before TS is available) and then again after bootstrapping is done (when TS is available). Because Fluid uses the runtime cache to store retrieved template paths, the first fallbacks-only set of paths is cached and returned for the second request after TS is available.</p>
<p>End result is that Fluid ignores the TS paths.</p>
<p>Note:</p>
<p>Although this currently requires Flux to expose, the bug is not in Flux itself and cannot be properly prevented there. It <strong>is</strong> also possible to reproduce this problem by subscribing to a hook in TSFE which gets called before TS is parsed, and have this hook subscriber render a template from an extension which also contains a plugin that will be rendered as page content or via USER TS object. The first rendering will then cause the paths to be cached and subsequent renderings will not detect any TS path settings.</p>
<p>Solution:</p>
<p>The problem can be fixed by not allowing CMS Fluid's TemplatePaths to be stored in runtime cache when the paths are purely fallbacks. By caching only when the "configured paths" (read: specified using setters or defined in TS) we circumvent the problem.</p> TYPO3 Core - Bug #78766 (New): getCopyHeader in Datahandler can be invoked up til 100 times if $G...http://forge.typo3.org/issues/787662016-11-22T13:48:54ZThomas Hohnthomas@hohn.dk
<p>The method getCopyHeader can be invoked up to 100 times extra when copying elements if $GLOBALS['TCA'][$table]['ctrl']['prependAtCopy'] is empty.<br />The solution is to fetch the label in the beginning of the method <br /><code>$label = $this->prependLabel($table)</code></p>
<p>and change</p>
<p><code>if ($rowCount) {<br /> return $this->getCopyHeader($table, $pid, $field, $value, $count + 1, $checkTitle);<br />}</code></p>
<p>to</p>
<p><code>if (($rowCount) && (!empty($this->prependLabel($table)))){<br /> return $this->getCopyHeader($table, $pid, $field, $value, $count + 1, $checkTitle);<br />}</code></p>