[Rt-commit] r4157 - in rt/branches/QUEBEC-EXPERIMENTAL: . lib/RT

jesse at bestpractical.com jesse at bestpractical.com
Wed Nov 30 15:57:22 EST 2005


Author: jesse
Date: Wed Nov 30 15:57:22 2005
New Revision: 4157

Modified:
   rt/branches/QUEBEC-EXPERIMENTAL/   (props changed)
   rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Attachments_Overlay.pm
Log:
 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/QUEBEC-EXPERIMENTAL/lib/RT/Attachments_Overlay.pm
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Attachments_Overlay.pm	(original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Attachments_Overlay.pm	Wed Nov 30 15:57:22 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