[TYPO3-core] RFC: Bug #9227: Group field in Flexforms with a single table does not show selected items
Marcus Kliche
alzeck at gmx.de
Thu Sep 4 17:46:47 CEST 2008
Hi Oli,
"Oliver Hader" <oliver at typo3.org> schrieb im Newsbeitrag
news:mailman.1.1219742520.14478.typo3-team-core at lists.netfielders.de...
> 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.
+1 by test and reading
Marcus
More information about the TYPO3-team-core
mailing list