[Rt-commit] r11206 - in rtfm/branches/2.3-EXPERIMENTAL: lib/RT/FM

falcone at bestpractical.com falcone at bestpractical.com
Wed Mar 26 13:27:44 EDT 2008


Author: falcone
Date: Wed Mar 26 13:27:34 2008
New Revision: 11206

Modified:
   rtfm/branches/2.3-EXPERIMENTAL/   (props changed)
   rtfm/branches/2.3-EXPERIMENTAL/lib/RT/FM/Topic_Overlay.pm

Log:
 r30550 at ketch:  falcone | 2008-03-26 13:04:11 -0400
 * sort by children topics by name


Modified: rtfm/branches/2.3-EXPERIMENTAL/lib/RT/FM/Topic_Overlay.pm
==============================================================================
--- rtfm/branches/2.3-EXPERIMENTAL/lib/RT/FM/Topic_Overlay.pm	(original)
+++ rtfm/branches/2.3-EXPERIMENTAL/lib/RT/FM/Topic_Overlay.pm	Wed Mar 26 13:27:34 2008
@@ -173,7 +173,8 @@
 
 =head2 Children
 
-Returns a TopicCollection object containing this topic's children.
+Returns a TopicCollection object containing this topic's children,
+sorted by Topic.Name.
 
 =cut
 
@@ -183,6 +184,7 @@
         $self->{'Children'} = RT::FM::TopicCollection->new($self->CurrentUser);
         $self->{'Children'}->Limit('FIELD' => 'Parent',
                                    'VALUE' => $self->Id);
+        $self->{'Children'}->OrderBy('FIELD' => 'Name');
     }
     return $self->{'Children'};
 }


More information about the Rt-commit mailing list