[TYPO3-core] RFC: Bug #9227: Group field in Flexforms with a single table does not show selected items
Oliver Hader
oliver at typo3.org
Tue Aug 26 11:22:58 CEST 2008
This is a SVN patch request.
Problem:
A group/db field in Flexforms with a single allowed table does not show
selected items in TCEforms view. However, the data is stored in the
database.
On using regular TCA (no Flexforms) for a group/db field, we get
something like this for the selected items:
| "pages_123|SomePage"
For the same field, but inside Flexforms, we get the following:
| "123" (the normally prepended table name is missing here)
If there are two tables defined in the "allowed" property or all tables
are enabled by "*", everything is fine.
Solution:
In t3lib_loadDBgroup the prepending table name is removed if there's
only one allowed table defined. This should stay as it is. The data of a
Flexform structure is not fetched by t3lib_transferData in
t3lib_TCEforms and thus the name of the table is missing.
The solution here is to check in t3lib_TCEforms for that missing table
information and if only a single table is defined in the "allowed"
property, use that one.
Comments:
See the bugtracker reference for a XML that allows one to reproduce this
with Flexforms.
Bugtracker references:
http://bugs.typo3.org/view.php?id=9227
Branches: TYPO3_4-2, Trunk
olly
--
Oliver Hader
TYPO3 4.3 Release Manager
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0009227.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080826/32a8249c/attachment-0001.txt
More information about the TYPO3-team-core
mailing list