[TYPO3-core] RFC: Bug #15282: It is impossible to set links to files any more with the link wizard

Oliver Hader oliver at typo3.org
Fri Jul 30 16:39:37 CEST 2010


This is an SVN patch request.

Type: Bugfix / Regression-Fix

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

Branches: TYPO3_4-1, TYPO3_4-2, TYPO3_4-3, TYPO3_4-4, Trunk

Problem:
When using the element browser, changing the tab from e.g. "page" to
"file" and selecting an element, the value will not be used on saving in
the edited record. The reason is, that the JavaScript methods triggered
by the element browser are not executed at all.

Solution:
This problem occurs when opening the element browser and changing the
tab to e.g. "file". Since the fieldChangeFunc array might get modified
inside the element browser, the hash (which is only generated once in
t3lib_TCEforms) won't match anymore - thus for security reasons no
JavaScript functions will be executed anymore. Thus, recreate the hash
inside the element browser.

How to reproduce:
* edit tt_content element
* open element browser, e.g. next to the "header" field
* switch to a different tab (e.g. from "page" to "file")
* select an element and close the element browser
* the checkbox in front of the "header" field is not checked
  and thus, the new value won't be stored on saving

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015282_41.patch
Type: text/x-patch
Size: 530 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100730/d0f8b0b4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015282_42_trunk.patch
Type: text/x-patch
Size: 671 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100730/d0f8b0b4/attachment-0001.bin>


More information about the TYPO3-team-core mailing list