#25318Extension Manager Function "Backup/Delete => Dump Tables" doesn't work any more
Description
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.
Solution:
Instead of the Array-Values, the array keys (which are the field names) should be used.
Patch provided as attachement.
(issue imported from #M17938)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.