[Rt-commit] rt branch, 4.0/saner-articles-order-before-msgbox, created. rt-4.0.4-79-g9224a54

Ruslan Zakirov ruz at bestpractical.com
Tue Nov 29 17:18:57 EST 2011


The branch, 4.0/saner-articles-order-before-msgbox has been created
        at  9224a546788fba4cd66d427e418944267635bb31 (commit)

- Log -----------------------------------------------------------------
commit 9224a546788fba4cd66d427e418944267635bb31
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Wed Nov 30 02:15:47 2011 +0400

    show articles before message box in order
    
    First of all sort by SortOrder column and then by name.
    In most cases it would be by name as SortOrder for articles
    is not exposed in the UI, but leave it this way in case
    somebody uses the column.

diff --git a/share/html/Articles/Elements/BeforeMessageBox b/share/html/Articles/Elements/BeforeMessageBox
index 6d2cc96..b1c0c21 100644
--- a/share/html/Articles/Elements/BeforeMessageBox
+++ b/share/html/Articles/Elements/BeforeMessageBox
@@ -192,6 +192,10 @@ if ( my $tmp = $ARGS{ $name_prefix ."Articles_Content" } ) {
                              VALUE           => $tmp,
                              ENTRYAGGREGATOR => "OR" );
     $articles_basics->LimitAppliedClasses( Queue => $QueueObj );
+    $articles_basics->OrderByCols(
+        { FIELD => 'SortOrder', ORDER => 'ASC' },
+        { FIELD => 'Name',      ORDER => 'ASC' },
+    );
 }
 
 my $hotlist = RT::Articles->new( $session{'CurrentUser'} );

-----------------------------------------------------------------------


More information about the Rt-commit mailing list