Adds sort on last modification in directory display (Closes #1507).
authorStéphane Jacob <sj@m4x.org>
Fri, 17 Jun 2011 11:38:21 +0000 (13:38 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 17 Jun 2011 11:38:21 +0000 (13:38 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
include/userset.inc.php

index 7b44395..6df06de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,7 @@ Bug/Wish:
         - #947: Lists group former members to group admins                 -JAC
         - #1481: Adds group nl subscription from group profile edition     -JAC
         - #1504: Displays users without profile in alphabetic lists        -JAC
+        - #1507: Adds sort on last modification in directory display       -JAC
         - #1508: Do not export emails in members csv files                 -JAC
         - #1511: Adds subscriber position to groups                        -JAC
 
index 6153836..ae787f6 100644 (file)
@@ -292,6 +292,11 @@ class GroupMemberView extends MixedView
                     new UFO_Promo(UserFilter::DISPLAY, true),
                     new UFO_Name(Profile::DN_SORT),
                 ), 'promotion'));
+        $this->addSort(new PlViewOrder('date_mod', array(
+                    new UFO_ProfileUpdate(true),
+                    new UFO_Promo(UserFilter::DISPLAY, true),
+                    new UFO_Name(Profile::DN_SORT),
+                ), 'dernière modification'));
         parent::__construct($set, $params);
     }