[BUGFIX] Extension Manager Function "Backup/Delete => Dump Tables" doesn't work any...
authorFranz G. Jahn <franzjahn@cron-it.de>
Mon, 14 Mar 2011 20:51:05 +0000 (21:51 +0100)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 16 Mar 2011 08:28:38 +0000 (09:28 +0100)
commitdda28123403d297ef4cf9b57610ee2e694ec64a9
treef39e06061ee16298958ee7b65afafef47325ce84
parent3d5ac721d344e644d478915765171202f81402c1
[BUGFIX] Extension Manager Function "Backup/Delete => Dump Tables" doesn't work any more

If you try to dump Tables via Extension Manager, you will get a file which looks like this:
...
INSERT INTO static_languages VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO static_languages VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
...

Reason:
tx_em_database::dumpTableContent uses associative Array $fieldStructure to access the database fields. Although $fieldStructure contains a mapping $field => $structure, the fields are read in a foreach-loop which uses the values of the array.

Change-Id: I6617cb5999d0ce4c184e6f15cbaf0d151bb4516d
Resolves: #M17938
Reviewed-on: http://review.typo3.org/1169
Reviewed-by: Björn Pedersen <bjoern.pedersen@frm2.tum.de>
Reviewed-by: Steffen Kamper <info@sk-typo3.de>
Tested-by: Steffen Kamper <info@sk-typo3.de>
typo3/sysext/em/classes/database/class.tx_em_database.php