Sorts language alphabetically in skill tab. Closes #1081
authorPascal Corpet <pascal.corpet@m4x.org>
Sat, 5 Jun 2010 12:28:46 +0000 (14:28 +0200)
committerPascal Corpet <pascal.corpet@m4x.org>
Sat, 5 Jun 2010 12:29:26 +0000 (14:29 +0200)
ChangeLog
modules/profile/skills.inc.php

index b4da04f..7226b97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,7 @@ Bug/Wish:
         - #450: Adds marital name, thus ordinary name can be any name      -JAC
         - #670: Adds Outlook CSV format for birthdays and contacts         -Car
         - #891: Improves education display                                 -JAC
+        - #1081: Sorts language alphabetically in skill tab                -Car
 
     * XnetLists:
         - #1010: Prevent empty list creation                               -Car
index 3811e22..4a8c579 100644 (file)
@@ -97,7 +97,8 @@ class ProfileSettingSkills extends ProfilePage
                                           'bonne connaissance' => 'bonne connaissance',
                                           'expert' => 'expert'));
         $page->assign('lang_list', XDB::iterator("SELECT  id, langue_fr
-                                                    FROM  profile_langskill_enum"));
+                                                    FROM  profile_langskill_enum
+                                                ORDER BY  langue_fr"));
         $page->assign('lang_level', array(1 => 'connaissance basique',
                                           2 => 'maîtrise des bases',
                                           3 => 'maîtrise limitée',