[Rt-commit] r3983 - in rt/branches/3.7-EXPERIMENTAL: . etc
html/Ticket/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Thu Oct 20 01:14:38 EDT 2005
Author: ruz
Date: Thu Oct 20 01:14:38 2005
New Revision: 3983
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in
rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowHistory
Log:
r1159 at cubic-pc: cubic | 2005-10-20 08:55:31 +0400
----------------------------------------------------------------------
r1139: cubic | 2005-10-13 06:04:12 +0400
Changes:
* new config option $OldestTransactionsFirst
* revesed history
TODO: when per user config overriding would be finished, we
should add this to the list of the options
----------------------------------------------------------------------
r1138: cubic | 2005-10-13 04:57:48 +0400
D.9.1.2. RTIR MUST present its threads of correspondence with
the latest at the top, if the operator wishes. It
SHOULD be a peruser configuration option.
----------------------------------------------------------------------
Modified: rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in (original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in Thu Oct 20 01:14:38 2005
@@ -411,6 +411,11 @@
Set($MaxInlineBody, 13456);
+# By default, RT shows newest transactions at the bottom of the ticket
+# history page, if you want see them at the top set this to '0'.
+
+Set($OldestTransactionsFirst, '1');
+
# $DefaultSummaryRows is default number of rows displayed in for search
# results on the frontpage.
Modified: rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowHistory
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowHistory (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Ticket/Elements/ShowHistory Thu Oct 20 01:14:38 2005
@@ -129,8 +129,18 @@
} else {
$Transactions = $Ticket->Transactions;
}
-my $i;
+
+my $OldestFirst = $RT::OldestTransactionsFirst? 1: 0;
+$OldestFirst = $session{'CurrentUser'}->UserObj->Preferences( OldestTransactionsFirst => $OldestFirst );
+$OldestFirst = $OldestFirst? 'ASC': 'DESC';
+$Transactions->OrderByCols( { FIELD => 'Created',
+ ORDER => $OldestFirst },
+ { FIELD => 'id',
+ ORDER => $OldestFirst },
+ );
+
+my $i;
$Attachments ||= $m->comp('/Ticket/Elements/FindAttachments', Ticket => $Ticket, Tickets => $Tickets || undef);
$AttachmentContent ||= $m->comp('/Ticket/Elements/LoadTextAttachments', Ticket => $Ticket);
More information about the Rt-commit
mailing list