Project

General

Profile

Actions

Bug #25318

closed

Extension Manager Function "Backup/Delete => Dump Tables" doesn't work any more

Added by Franz G. Jahn over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-03-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

patch-em-dumpdb.diff (681 Bytes) patch-em-dumpdb.diff Administrator Admin, 2011-03-14 15:28
Actions #2

Updated by Steffen Kamper over 13 years ago

fixed in git

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF