[TYPO3-core] RFC #11447: unwanted control fields exported in csv file
Andreas Lappe
nd at off-pist.de
Fri May 28 14:20:21 CEST 2010
This is an SVN patch request.
Type: Code cleanup
Bugtracker references:
http://bugs.typo3.org/view.php?id=11447
Branches:
4.3.0-alpha3 & trunk
Problem:
If you export from the LIST module the records of a table, then you also
get control fields stored:
"_AFTERCONTROL_","_REF_","_AFTERREF_"
Solution:
Patch the code
Notes:
This bug has been reported and patched by Franz Holzinger.
So long
Andy
--
``I solved the secret of the universe last night, but this morning I
forgot what it was.´´ -Arthur Koestler, 1960
-------------- next part --------------
Index: typo3/class.db_list_extra.inc
===================================================================
--- typo3/class.db_list_extra.inc (révision 5659)
+++ typo3/class.db_list_extra.inc (copie de travail)
@@ -1654,13 +1654,14 @@
// Getting header line with field names:
$csvRow = array();
+ $ctrlFieldArray = array('_PATH_', '_REF_', '_CONTROL_', '_AFTERCONTROL_', '_AFTERREF_', '_CLIPBOARD_', '_LOCALIZATION_', '_LOCALIZATION_b');
foreach ($this->fieldArray as $fN) {
- if ($fN == '_CONTROL_' || $fN == '_CLIPBOARD_') {
+
+ if (in_array($fN, $ctrlFieldArray)) {
continue;
}
$csvRow[] = $fN;
}
-
// Set the header + an empty row:
$this->setCsvRow($csvRow);
$this->csvLines[] = '';
More information about the TYPO3-team-core
mailing list