[Rt-commit] r4033 - in rt/branches/3.4-RELEASE: . lib/RT

jesse at bestpractical.com jesse at bestpractical.com
Sun Nov 6 17:13:39 EST 2005


Author: jesse
Date: Sun Nov  6 17:13:38 2005
New Revision: 4033

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/lib/RT/Attachments_Overlay.pm
Log:
 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/3.4-RELEASE/lib/RT/Attachments_Overlay.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/Attachments_Overlay.pm	(original)
+++ rt/branches/3.4-RELEASE/lib/RT/Attachments_Overlay.pm	Sun Nov  6 17:13:38 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