[TYPO3-core] RFC: Bug 5248: IRRE - Element browser cannot be used on new child records of a new parent record

Oliver Hader oh at inpublica.de
Sun Mar 18 19:29:35 CET 2007


This is a SVN patch request.

Problem:
Imagine you create a new parent record with a related new child record
using IRRE. The child record has a field which uses the element browser
(e.g. to integrate an image/file).
Since the child record was not present when the parent was created,
TCEforms didn't load the required JavaScript functions for the element
browser. The result is a JavaScript error "setFormValueOpenBrowser is
not defined".

Solution:
Load the JavaScript functions for the element browser in
t3lib_TCEforms::printNeededJSFunctions() if the parent record contains
one or more fields which use the TCA type "inline".

Bugtracker references:
http://bugs.typo3.org/view.php?id=5248

Branches: Trunk & TYPO3_4-1


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005248.patch
Type: text/x-diff
Size: 579 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070318/829a4bc4/attachment.bin 


More information about the TYPO3-team-core mailing list