Bug #22953
closedExport module does not keep pagetree configuration
0%
Description
In the Import / Export module, I try to select some tables for export. Then I click on "Update" and my selection is gone, but the preview shows all the data I selected. When I click "Update" again, the preview only shows pages.
This is the same for "Include relations to tables" and "Use static relations for tables".
The states of the drop down menu "Levels" and of the check box "Show static relations" are saved though.
I was able to reproduce this in 4.4RC2 and in the current trunk.
(issue imported from #M14810)
Files
Updated by Tommy Juhnke over 14 years ago
I think I figured it out.
I think the foreach loop in lines 1645:1649 must be changed to this:
foreach ($TCA as $table => $table_value) {
if ($GLOBALS['BE_USER']->check('tables_select',$table) && t3lib_div::inList($excludeList,$table)) {
$optValues[$table] = $table;
}
}
Otherwise, the "$value" (which is now changed to $table_value) will be assigned to the [ctrl] section of the last TCA entry. I'll test this and apply a patch.
edit: Sorry, I forgot to include the path in the diff. The file 14810_02 is the correct one which could by patched against current 4.4
Updated by Alexander Stehlik about 14 years ago
Works like a charm.
Thank you Thomas!
Updated by Chris topher about 14 years ago
Hi Thomas,
do you know that you should now send your patch to Core List?
Check out http://typo3.org/teams/core/core-mailinglist-rules/
Updated by Tommy Juhnke about 14 years ago
Hi Alexander & Christopher,
I've done that already and the patch is committed to the trunk for TYPO3 v4.5 by Ernesto:
http://forge.typo3.org/projects/typo3v4-core/repository/revisions/8079
Note: there's also a discussion going on in the Core Mailinglist for adding the $_ usage in foreach loops for unused key vars to the CGL.
Updated by Chris topher about 14 years ago
Ahh, I missed that one. Thanks for the pointer!
The CGL issue might go on and can result in another RFC, but this one is done. :-)
So:
Committed by Ernesto to
4_4: Rev. 8080
trunk: Rev. 8079