[Rt-commit] r4181 - in rt/branches/CHALDEA-EXPERIMENTAL: . lib/RT

jesse at bestpractical.com jesse at bestpractical.com
Wed Nov 30 16:27:19 EST 2005


Author: jesse
Date: Wed Nov 30 16:27:18 2005
New Revision: 4181

Modified:
   rt/branches/CHALDEA-EXPERIMENTAL/   (props changed)
   rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Attachments_Overlay.pm
Log:
 r19598 at truegrounds:  jesse | 2005-11-30 16:06:36 -0500
  r19555 at truegrounds:  jesse | 2005-11-30 15:28:02 -0500
   r18409 at truegrounds:  jesse | 2005-11-06 17:11:57 -0500
   * Fix to attachment ordering when you ask for a txn's attachments.
     (Postgres doesn't default to ordering by id, so we were getting the wrong txn content)
  
 


Modified: rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Attachments_Overlay.pm
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Attachments_Overlay.pm	(original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/lib/RT/Attachments_Overlay.pm	Wed Nov 30 16:27:18 2005
@@ -81,6 +81,8 @@
  
   $self->{'table'} = "Attachments";
   $self->{'primary_key'} = "id";
+  $self->OrderBy ( FIELD => 'id',
+                   ORDER => 'ASC');
   return ( $self->SUPER::_Init(@_));
 }
 # }}}


More information about the Rt-commit mailing list