[Jifty-commit] r5683 - Jifty-DBI/branches/tisql/lib/Jifty/DBI

Jifty commits jifty-commit at lists.jifty.org
Tue Aug 12 02:40:48 EDT 2008


Author: ruz
Date: Tue Aug 12 02:40:48 2008
New Revision: 5683

Modified:
   Jifty-DBI/branches/tisql/lib/Jifty/DBI/Collection.pm

Log:
* fix new code EA placing

Modified: Jifty-DBI/branches/tisql/lib/Jifty/DBI/Collection.pm
==============================================================================
--- Jifty-DBI/branches/tisql/lib/Jifty/DBI/Collection.pm	(original)
+++ Jifty-DBI/branches/tisql/lib/Jifty/DBI/Collection.pm	Tue Aug 12 02:40:48 2008
@@ -1351,8 +1351,8 @@
     if ( @$restriction ) {
         if ( $restriction->[-1] eq '(' ) {
             for my $i ( reverse 0 .. (@$restriction-1) ) {
-                next if $restriction->[-1] eq '(';
-                splice @$restriction, $i-1, 0, $args{'entry_aggregator'};
+                next if $restriction->[$i] eq '(';
+                splice @$restriction, $i+1, 0, $args{'entry_aggregator'};
                 last;
             }
         } else {


More information about the Jifty-commit mailing list