[BUGFIX] Tests: Fix Tag model config in extbase blog_example test extension 52/42652/4
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Sat, 15 Aug 2015 20:27:07 +0000 (22:27 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 28 Aug 2015 14:03:55 +0000 (16:03 +0200)
The Tag model in the extbase definition included a partial configuration
for translatable records. This includes NOT NULL fields in the SQL
schema definition that aren't declared in the TCA as well as fields that
are not being used by TYPO3 at all. This patch removes the partial
configuration as it caused errors when used with MySQL strict mode.

Resolves: #69089
Releases: master
Change-Id: Ib2c01ddfbbf4c7e4f9c0e53c324a3140ce3fa70f
Reviewed-on: http://review.typo3.org/42652
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/Tag.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/ext_tables.sql
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/tags.xml

index f6fdef0..93dad9a 100644 (file)
@@ -34,12 +34,6 @@ $TCA['tx_blogexample_domain_model_tag'] = array(
                                'foreign_table_where' => 'AND tx_blogexample_domain_model_tag.uid=###REC_FIELD_l18n_parent### AND tx_blogexample_domain_model_tag.sys_language_uid IN (-1,0)',
                        )
                ),
-               'l18n_diffsource' => Array(
-                       'config'=>array(
-                               'type' => 'passthrough',
-                               'default' => ''
-                       )
-               ),
                'hidden' => array(
                        'exclude' => 1,
                        'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
index 5e3745f..10aa5bf 100644 (file)
@@ -152,8 +152,6 @@ CREATE TABLE tx_blogexample_domain_model_tag (
        hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
 
        sys_language_uid int(11) DEFAULT '0' NOT NULL,
-       l18n_parent int(11) DEFAULT '0' NOT NULL,
-       l18n_diffsource mediumblob NOT NULL,
 
        PRIMARY KEY (uid),
        KEY parent (pid),
index 40597be..71ef969 100644 (file)
@@ -4,7 +4,6 @@
                <uid>1</uid>
                <pid>0</pid>
                <posts>10</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag1</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -12,7 +11,6 @@
                <uid>2</uid>
                <pid>0</pid>
                <posts>2</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag2</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -20,7 +18,6 @@
                <uid>3</uid>
                <pid>0</pid>
                <posts>1</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag3</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -28,7 +25,6 @@
                <uid>4</uid>
                <pid>0</pid>
                <posts>1</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag4</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -36,7 +32,6 @@
                <uid>5</uid>
                <pid>0</pid>
                <posts>1</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag5</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -44,7 +39,6 @@
                <uid>6</uid>
                <pid>0</pid>
                <posts>1</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag6</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -52,7 +46,6 @@
                <uid>7</uid>
                <pid>0</pid>
                <posts>1</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag7</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -60,7 +53,6 @@
                <uid>8</uid>
                <pid>0</pid>
                <posts>1</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag8</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -68,7 +60,6 @@
                <uid>9</uid>
                <pid>0</pid>
                <posts>1</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag9</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>
@@ -76,7 +67,6 @@
                <uid>10</uid>
                <pid>0</pid>
                <posts>1</posts>
-               <l18n_diffsource></l18n_diffsource>
                <name>Tag10</name>
                <deleted>0</deleted>
        </tx_blogexample_domain_model_tag>