[TYPO3-core] RFC: Bug #9608: Frontend Editing does not work anymore
Oliver Hader
oliver at typo3.org
Tue Oct 21 17:21:14 CEST 2008
FYI: Committed to SVN:
* TYPO3_4-2 (rev. 4342)
* Trunk (rev. 4343)
Thanks guys, this one went through really fast! :)
olly
Oliver Hader schrieb:
> This is a SVN patch request.
>
> Problem:
> Due to a change of loading JavaScript libraries in the back-end by a
> commond handler function, the front-end editing does not work anymore
> and shows the following PHP error:
>
> Fatal error: Call to undefined method stdClass::loadJavascriptLib() in
> t3lib/class.t3lib_tceforms.phpon line 5079
>
> Solution:
> In back-end the JavaScript resources of t3lib_TCEforms get added to the
> HTML <head> tag by using [template]->loadJavascriptLib('file.js').
> However, in front-end mode, there is no instance of the "template" class
> available.
> To solve this issue a new function loadJavascriptLib() was integrated to
> t3lib_TCEforms that calls the template object in back-end disposal - and
> in front-end disposal it gets overridden in t3lib_TCEforms_FE and adds
> the JavaScript library to $GLOBALS['TSFE']->additionalHeaderData.
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9608
>
> Branches: TYPO3_4-2, Trunk
>
>
> olly
--
Oliver Hader
TYPO3 4.3 Release Manager
More information about the TYPO3-team-core
mailing list