[BUGFIX] rtehtmlarea acronym error with static_info_tables 6.0+ 64/22664/2
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 29 Jul 2013 16:33:06 +0000 (12:33 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Sun, 11 Aug 2013 13:22:02 +0000 (15:22 +0200)
Problem: Editing acronym records fails with Static Info Tables 6.0+ as
tx_staticinfotables_div->selectItemsTCA does not exist anymore.
Solution: Use suggest wizard

Resolves: #50502
Releases: 6.0, 6.1, 6.2
Change-Id: I69e564662df19f0625ec3e71b05e91c7ed5edfc8
Reviewed-on: https://review.typo3.org/22664
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/Configuration/TCA/tx_rtehtmlarea_acronym.php

index aae5d8b..a6e35f2 100644 (file)
@@ -103,17 +103,22 @@ return array(
                        'config' => array(
                                'type' => 'select',
                                'items' => array(
-                                       array('', 0)
-                               ),
-                               'itemsProcFunc' => 'tx_staticinfotables_div->selectItemsTCA',
-                               'itemsProcFunc_config' => array(
-                                       'table' => 'static_languages',
-                                       'indexField' => 'uid',
-                                       'prependHotlist' => 1
+                                       array('', 0),
                                ),
+                               'foreign_table' => 'static_languages',
+                               'foreign_table_where' => 'ORDER BY static_languages.lg_name_en',
+                               'itemsProcFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateLanguagesSelector',
                                'size' => 1,
                                'minitems' => 0,
-                               'maxitems' => 1
+                               'maxitems' => 1,
+                               'wizards' => array(
+                                       'suggest' => array(
+                                               'type' => 'suggest',
+                                               'default' => array(
+                                                       'receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\SuggestReceiver'
+                                               )
+                                       )
+                               )
                        )
                )
        ),