[BUGFIX] Assign default values in TCA 97/42397/6
authorOliver Hader <oliver@typo3.org>
Thu, 13 Aug 2015 16:19:06 +0000 (18:19 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 15 Aug 2015 14:23:05 +0000 (16:23 +0200)
Several fields don't have proper default values which also
cannot be defined in the SQL schema - since BLOB/TEXT fields
cannot have a DEFAULT assignment. The default values are now
defined via TCA.

Resolves: #66430
Releases: master
Change-Id: I765dc11387ab371da80e3d03814c312fdb25d203
Reviewed-on: http://review.typo3.org/42397
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
33 files changed:
typo3/sysext/core/Configuration/TCA/pages.php
typo3/sysext/core/Configuration/TCA/sys_category.php
typo3/sysext/core/Configuration/TCA/sys_collection.php
typo3/sysext/core/Configuration/TCA/sys_file_collection.php
typo3/sysext/core/Configuration/TCA/sys_file_metadata.php
typo3/sysext/core/Configuration/TCA/sys_file_reference.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_1ncsv_hotel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_1ncsv_offer.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_1ncsv_price.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_1nff_hotel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_1nff_offer.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_1nff_price.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnasym_hotel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnasym_hotel_offer_rel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnasym_offer.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnasym_price.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnattr_hotel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnattr_hotel_offer_rel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnattr_offer.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnmmasym_hotel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnmmasym_offer.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnmmasym_price.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnsym_hotel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TCA/tx_irretutorial_mnsym_hotel_rel.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Configuration/TCA/tx_testdatahandler_element.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/ext_tables.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/Blog.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/Post.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/Tag.php
typo3/sysext/frontend/Configuration/TCA/pages_language_overlay.php
typo3/sysext/frontend/Configuration/TCA/tt_content.php
typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/impexp_group_files/Configuration/TCA/tx_impexpgroupfiles_item.php

index d93403d..96c1f56 100644 (file)
@@ -527,7 +527,8 @@ return array(
                                                        'additionalSearchFields' => 'nav_title, alias, url'
                                                )
                                        )
-                               )
+                               ),
+                               'default' => 0
                        )
                ),
                'shortcut_mode' => array(
@@ -571,7 +572,8 @@ return array(
                                        'suggest' => array(
                                                'type' => 'suggest'
                                        )
-                               )
+                               ),
+                               'default' => 0
                        )
                ),
                'mount_pid' => array(
@@ -588,7 +590,8 @@ return array(
                                        'suggest' => array(
                                                'type' => 'suggest'
                                        )
-                               )
+                               ),
+                               'default' => 0
                        )
                ),
                'keywords' => array(
index db91716..5869673 100644 (file)
@@ -74,12 +74,14 @@ return array(
                                        array('', 0)
                                ),
                                'foreign_table' => 'sys_category',
-                               'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)'
+                               'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)',
+                               'default' => 0
                        )
                ),
                'l10n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -129,7 +131,8 @@ return array(
                        'exclude' => 0,
                        'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category.description',
                        'config' => array(
-                               'type' => 'text'
+                               'type' => 'text',
+                               'default' => '',
                        )
                ),
                'parent' => array(
@@ -149,7 +152,8 @@ return array(
                                                'showHeader' => TRUE,
                                                'maxLevels' => 99,
                                        ),
-                               )
+                               ),
+                               'default' => 0
                        )
                ),
                'items' => array(
index 480abaa..dc364c9 100644 (file)
@@ -69,7 +69,8 @@ return array(
                ),
                'l10n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
index 9c00d98..06e04aa 100644 (file)
@@ -68,7 +68,8 @@ return array(
                ),
                'l10n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
index 3ee6982..38ec78d 100644 (file)
@@ -51,13 +51,15 @@ return array(
                                        array('', 0)
                                ),
                                'foreign_table' => 'sys_file_metadata',
-                               'foreign_table_where' => 'AND sys_file_metadata.uid=###REC_FIELD_l10n_parent### AND sys_file_metadata.sys_language_uid IN (-1,0)'
+                               'foreign_table_where' => 'AND sys_file_metadata.uid=###REC_FIELD_l10n_parent### AND sys_file_metadata.sys_language_uid IN (-1,0)',
+                               'default' => 0
                        )
                ),
                'l10n_diffsource' => array(
                        'exclude' => 0,
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                't3ver_label' => array(
@@ -85,6 +87,7 @@ return array(
                                'minitems' => 1,
                                'maxitems' => 1,
                                'size' => 1,
+                               'default' => 0,
                        )
                ),
                'title' => array(
index 39a80d0..aff10ff 100644 (file)
@@ -72,13 +72,15 @@ return array(
                                        array('', 0)
                                ),
                                'foreign_table' => 'sys_file_reference',
-                               'foreign_table_where' => 'AND sys_file_reference.uid=###REC_FIELD_l10n_parent### AND sys_file_reference.sys_language_uid IN (-1,0)'
+                               'foreign_table_where' => 'AND sys_file_reference.uid=###REC_FIELD_l10n_parent### AND sys_file_reference.sys_language_uid IN (-1,0)',
+                               'default' => 0
                        )
                ),
                'l10n_diffsource' => array(
                        'exclude' => 0,
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
index 1bc074e..235337a 100644 (file)
@@ -47,6 +47,7 @@ $GLOBALS['TCA']['tt_content']['ctrl']['shadowColumnsForMovePlaceholders'] = 'tx_
                                        'localizationMode' => 'select',
                                        'localizeChildrenAtParentLocalization' => TRUE,
                                ),
+                               'default' => '',
                        )
                ),
                'tx_irretutorial_flexform' => array(
@@ -57,6 +58,7 @@ $GLOBALS['TCA']['tt_content']['ctrl']['shadowColumnsForMovePlaceholders'] = 'tx_
                                'ds' => array(
                                        'default' => 'FILE:EXT:irre_tutorial/Configuration/FlexForms/tt_content_flexform.xml',
                                ),
+                               'default' => '',
                        )
                ),
        )
index 45c126d..f15c067 100644 (file)
@@ -34,7 +34,8 @@ return array(
                                'items' => array(
                                        array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
                                        array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
-                               )
+                               ),
+                               'default' => 0,
                        )
                ),
                'l18n_parent' => array(
@@ -48,11 +49,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_1ncsv_hotel',
                                'foreign_table_where' => 'AND tx_irretutorial_1ncsv_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1ncsv_hotel.sys_language_uid IN (-1,0)',
+                               'default' => 0
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -90,6 +93,7 @@ return array(
                                        'localizationMode' => 'select',
                                        'localizeChildrenAtParentLocalization' => TRUE,
                                ),
+                               'default' => ''
                        )
                ),
        ),
@@ -102,4 +106,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 1379936..3c88fdf 100644 (file)
@@ -48,11 +48,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_1ncsv_offer',
                                'foreign_table_where' => 'AND tx_irretutorial_1ncsv_offer.pid=###CURRENT_PID### AND tx_irretutorial_1ncsv_offer.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -90,6 +92,7 @@ return array(
                                        'localizationMode' => 'select',
                                        'localizeChildrenAtParentLocalization' => TRUE,
                                ),
+                               'default' => ''
                        )
                ),
        ),
@@ -102,4 +105,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 979d583..2210266 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_1ncsv_price',
                                'foreign_table_where' => 'AND tx_irretutorial_1ncsv_price.pid=###CURRENT_PID### AND tx_irretutorial_1ncsv_price.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -90,4 +92,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 6a413d0..c2b6a77 100644 (file)
@@ -19,7 +19,7 @@ return array(
                'origUid' => 't3_origuid',
                // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
                // 'shadowColumnsForNewPlaceholders' => 'parentid,parenttable',
-               'shadowColumnsForMovePlaceholders' => 'parentid,parenttable',
+               'shadowColumnsForMovePlaceholders' => 'parentid,parenttable,parentidentifier',
        ),
        'interface' => array(
                'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
@@ -49,11 +49,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_1nff_hotel',
                                'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_hotel.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -67,11 +69,19 @@ return array(
                'parentid' => array(
                        'config' => array(
                                'type' => 'passthrough',
+                               'default' => 0
                        )
                ),
                'parenttable' => array(
                        'config' => array(
                                'type' => 'passthrough',
+                               'default' => ''
+                       )
+               ),
+               'parentidentifier' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'title' => array(
@@ -115,4 +125,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 07a311c..825daa7 100644 (file)
@@ -19,7 +19,7 @@ return array(
                'origUid' => 't3_origuid',
                // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
                // 'shadowColumnsForNewPlaceholders' => 'parentid,parenttable',
-               'shadowColumnsForMovePlaceholders' => 'parentid,parenttable',
+               'shadowColumnsForMovePlaceholders' => 'parentid,parenttable,parentidentifier',
        ),
        'interface' => array(
                'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,parentid,parenttable,title,prices'
@@ -49,11 +49,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_1nff_offer',
                                'foreign_table_where' => 'AND tx_irretutorial_1nff_offer.pid=###CURRENT_PID### AND tx_irretutorial_1nff_offer.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -67,11 +69,19 @@ return array(
                'parentid' => array(
                        'config' => array(
                                'type' => 'passthrough',
+                               'default' => 0
                        )
                ),
                'parenttable' => array(
                        'config' => array(
                                'type' => 'passthrough',
+                               'default' => ''
+                       )
+               ),
+               'parentidentifier' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'title' => array(
@@ -115,4 +125,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 42c4cfb..d7ed87a 100644 (file)
@@ -19,7 +19,7 @@ return array(
                'origUid' => 't3_origuid',
                // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
                // 'shadowColumnsForNewPlaceholders' => 'parentid,parenttable',
-               'shadowColumnsForMovePlaceholders' => 'parentid,parenttable',
+               'shadowColumnsForMovePlaceholders' => 'parentid,parenttable,parentidentifier',
        ),
        'interface' => array(
                'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,parentid,title,price'
@@ -49,11 +49,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_1nff_price',
                                'foreign_table_where' => 'AND tx_irretutorial_1nff_price.pid=###CURRENT_PID### AND tx_irretutorial_1nff_price.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -67,11 +69,19 @@ return array(
                'parentid' => array(
                        'config' => array(
                                'type' => 'passthrough',
+                               'default' => 0
                        )
                ),
                'parenttable' => array(
                        'config' => array(
                                'type' => 'passthrough',
+                               'default' => ''
+                       )
+               ),
+               'parentidentifier' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'title' => array(
@@ -103,4 +113,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 7944128..3892976 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnasym_hotel',
                                'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -102,4 +104,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 6125831..2c94ab3 100644 (file)
@@ -47,11 +47,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnasym_hotel_offer_rel',
                                'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel_offer_rel.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -70,6 +72,7 @@ return array(
                                'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel.sys_language_uid="###REC_FIELD_sys_language_uid###"',
                                'maxitems' => 1,
                                'localizeReferences' => 1,
+                               'default' => 0,
                        )
                ),
                'offerid' => array(
@@ -80,6 +83,7 @@ return array(
                                'foreign_table_where' => 'AND tx_irretutorial_mnasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_offer.sys_language_uid="###REC_FIELD_sys_language_uid###"',
                                'maxitems' => 1,
                                'localizeReferences' => 1,
+                               'default' => 0,
                        )
                ),
                'prices' => array(
@@ -120,4 +124,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index dc896d5..8d57a6a 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnasym_offer',
                                'foreign_table_where' => 'AND tx_irretutorial_mnasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_offer.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -102,4 +104,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 9ca8e19..64e12bf 100644 (file)
@@ -48,11 +48,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnasym_price',
                                'foreign_table_where' => 'AND tx_irretutorial_mnasym_price.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_price.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -97,4 +99,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index abbf33b..041b3b5 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnattr_hotel',
                                'foreign_table_where' => 'AND tx_irretutorial_mnattr_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnattr_hotel.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -102,4 +104,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index d9646b4..306b803 100644 (file)
@@ -47,11 +47,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnattr_hotel_offer_rel',
                                'foreign_table_where' => 'AND tx_irretutorial_mnattr_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnattr_hotel_offer_rel.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -69,6 +71,7 @@ return array(
                                'foreign_table' => 'tx_irretutorial_mnattr_hotel',
                                'maxitems' => 1,
                                'localizeReferences' => 1,
+                               'default' => 0,
                        )
                ),
                'offerid' => array(
@@ -78,6 +81,7 @@ return array(
                                'foreign_table' => 'tx_irretutorial_mnattr_offer',
                                'maxitems' => 1,
                                'localizeReferences' => 1,
+                               'default' => 0,
                        )
                ),
                'hotelsort' => array(
@@ -121,4 +125,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index eb62d97..7768542 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnattr_offer',
                                'foreign_table_where' => 'AND tx_irretutorial_mnattr_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnattr_offer.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -102,4 +104,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index ce17d9d..8af75e6 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnmmasym_hotel',
                                'foreign_table_where' => 'AND tx_irretutorial_mnmmasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnmmasym_hotel.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -101,4 +103,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 010f62b..5b93c42 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnmmasym_offer',
                                'foreign_table_where' => 'AND tx_irretutorial_mnmmasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnmmasym_offer.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -122,4 +124,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 8e4521b..d43a2c8 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnmmasym_price',
                                'foreign_table_where' => 'AND tx_irretutorial_mnmmasym_price.pid=###CURRENT_PID### AND tx_irretutorial_mnmmasym_price.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -111,4 +113,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 4dc843c..4bfd84e 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnsym_hotel',
                                'foreign_table_where' => 'AND tx_irretutorial_mnsym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnsym_hotel.sys_language_uid IN (-1,0)',
+                               'default' => 0,
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -105,4 +107,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 4676087..2ee1fa8 100644 (file)
@@ -47,11 +47,13 @@ return array(
                                ),
                                'foreign_table' => 'tx_irretutorial_mnsym_hotel_rel',
                                'foreign_table_where' => 'AND tx_irretutorial_mnsym_hotel_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnsym_hotel_rel.sys_language_uid IN (-1,0)',
+                               'default' => 0
                        )
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -69,6 +71,7 @@ return array(
                                'foreign_table' => 'tx_irretutorial_mnsym_hotel',
                                'maxitems' => 1,
                                'localizeReferences' => 1,
+                               'default' => 0,
                        )
                ),
                'branchid' => array(
@@ -78,6 +81,7 @@ return array(
                                'foreign_table' => 'tx_irretutorial_mnsym_hotel',
                                'maxitems' => 1,
                                'localizeReferences' => 1,
+                               'default' => 0,
                        )
                ),
                'hotelsort' => array(
@@ -100,4 +104,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index 5df42a4..34b8120 100644 (file)
@@ -46,11 +46,13 @@ return array(
                                ),
                                'foreign_table'       => 'tx_irretutorial_1nff_hotel',
                                'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_hotel.sys_language_uid IN (-1,0)',
+                               'default' => 0
                        )
                ),
                'l10n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
@@ -81,4 +83,4 @@ return array(
        'palettes' => array(
                '1' => Array('showitem' => '')
        )
-);
\ No newline at end of file
+);
index dc0165f..b81041a 100644 (file)
@@ -15,6 +15,7 @@ defined('TYPO3_MODE') or die();
                                'minitems' => 1,
                                'maxitems' => 10,
                                'autoSizeMax' => '10',
+                               'default' => '',
                        ),
                ),
                 'tx_testdatahandler_group' => array(
@@ -27,6 +28,7 @@ defined('TYPO3_MODE') or die();
                                'minitems' => 1,
                                'maxitems' => 10,
                                'autoSizeMax' => '10',
+                               'default' => '',
                        ),
                ),
                 'tx_testdatahandler_radio' => array(
@@ -37,7 +39,8 @@ defined('TYPO3_MODE') or die();
                                'items' => array(
                                        array('predefined label', 'predefined value')
                                ),
-                               'itemsProcFunc' => 'TYPO3\TestDatahandler\Classes\Tca\RadioElementItems->getItems'
+                               'itemsProcFunc' => 'TYPO3\TestDatahandler\Classes\Tca\RadioElementItems->getItems',
+                               'default' => '',
                        ),
                ),
        )
index d61b857..21d82f4 100644 (file)
@@ -35,7 +35,8 @@ $TCA['tx_blogexample_domain_model_blog'] = array(
                ),
                'l18n_diffsource' => Array(
                        'config'=>array(
-                               'type'=>'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                't3ver_label' => Array (
index bceccb6..58e85a6 100644 (file)
@@ -40,7 +40,8 @@ $TCA['tx_blogexample_domain_model_post'] = array(
                ),
                'l18n_diffsource' => Array(
                        'config'=>array(
-                               'type'=>'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
index 61e4d1a..0d3097a 100644 (file)
@@ -35,7 +35,8 @@ $TCA['tx_blogexample_domain_model_tag'] = array(
                ),
                'l18n_diffsource' => Array(
                        'config'=>array(
-                               'type'=>'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                'hidden' => array(
index ffcb2d7..202f67a 100644 (file)
@@ -205,11 +205,17 @@ return array(
                                'type' => 'select',
                                'foreign_table' => 'sys_language',
                                'foreign_table_where' => 'ORDER BY sys_language.title',
-                               'items' => array() // no default language here, as the pages table is always the default language
+                               'items' => array(), // no default language here, as the pages table is always the default language
+                               'default' => 0
                        )
                ),
                'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
-               'l18n_diffsource' => array('config' => array('type' => 'passthrough')),
+               'l18n_diffsource' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                               'default' => ''
+                       )
+               ),
                't3ver_label' => array(
                        'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
                        'config' => array(
index 91d2c59..9f48564 100644 (file)
@@ -245,7 +245,8 @@ return array(
                                        )
                                ),
                                'foreign_table' => 'tt_content',
-                               'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.sys_language_uid IN (-1,0)'
+                               'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.sys_language_uid IN (-1,0)',
+                               'default' => 0
                        )
                ),
                'layout' => array(
@@ -1000,7 +1001,8 @@ return array(
                ),
                'l18n_diffsource' => array(
                        'config' => array(
-                               'type' => 'passthrough'
+                               'type' => 'passthrough',
+                               'default' => ''
                        )
                ),
                't3ver_label' => array(
index 6e39d5b..48fd32e 100644 (file)
@@ -81,6 +81,12 @@ return array(
                                ),
                        ),
                ),
+               'l18n_diffsource' => array(
+                       'config' => array(
+                               'type' => 'passthrough',
+                               'default' => ''
+                       )
+               ),
                'title' => array(
                        'label' => 'LLL:EXT:impexp_group_files/Resources/Private/Language/locallang_db.xml:tx_impexpgroupfiles_item_title',
                        'config' => array(
@@ -199,7 +205,8 @@ return array(
                                                                </sDEF>
                                                        </sheets>
                                                </T3DataStructure>'
-                               )
+                               ),
+                               'default' => ''
                        )
                ),
        ),