Feature #11500: Order fe_groups in select fields alphabetically (Thanks to Steffen...
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 1 Aug 2009 22:15:04 +0000 (22:15 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 1 Aug 2009 22:15:04 +0000 (22:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5745 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/ext_tables.php
typo3/sysext/cms/tbl_cms.php
typo3/sysext/cms/tbl_tt_content.php

index e6ed57d..f516284 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-02  Christian Kuhn  <lollli@schwarzbu.ch>
+
+       * Feature #11500: Order fe_groups in select fields alphabetically (Thanks to Steffen Gebert)
+
 2009-08-01  Christian Kuhn  <lollli@schwarzbu.ch>
 
        * Feature #6039: TCA group -> file absolute path without uploadfolder extended (Thanks to Martin Borer)
index bccbdbb..d2f67a3 100755 (executable)
@@ -173,6 +173,7 @@ if (TYPO3_MODE=='BE')       {
                                ),
                                'exclusiveKeys' => '-1,-2',
                                'foreign_table' => 'fe_groups',
+                               'foreign_table_where' => 'ORDER BY fe_groups.title',
                        )
                ),
                'extendToSubpages' => array (
index 131c671..cdc8539 100755 (executable)
@@ -71,6 +71,7 @@ $TCA['fe_users'] = array(
                        'config' => array(
                                'type' => 'select',
                                'foreign_table' => 'fe_groups',
+                               'foreign_table_where' => 'ORDER BY fe_groups.title',
                                'size' => '6',
                                'minitems' => '1',
                                'maxitems' => '50'
index e200088..2750e0a 100755 (executable)
@@ -124,7 +124,8 @@ $TCA['tt_content'] = Array (
                                        Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
                                ),
                                'exclusiveKeys' => '-1,-2',
-                               'foreign_table' => 'fe_groups'
+                               'foreign_table' => 'fe_groups',
+                               'foreign_table_where' => 'ORDER BY fe_groups.title',
                        )
                ),
                'sys_language_uid' => Array (