[Jifty-commit] r5041 - in Jifty-DBI/branches/tisql: lib/Jifty/DBI
Jifty commits
jifty-commit at lists.jifty.org
Tue Feb 5 21:18:40 EST 2008
Author: ruz
Date: Tue Feb 5 21:18:39 2008
New Revision: 5041
Modified:
Jifty-DBI/branches/tisql/ (props changed)
Jifty-DBI/branches/tisql/lib/Jifty/DBI/Collection.pm
Log:
r4811 at cubic-pc (orig r4810): sartak | 2008-01-11 00:00:28 +0300
r50047 at onn: sartak | 2008-01-10 15:35:34 -0500
No need to duplicate order_by's logic, just call thrash explicitly and call add_order_by
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 Feb 5 21:18:39 2008
@@ -1498,13 +1498,8 @@
my $self = shift;
return if $self->derived;
if (@_) {
- my @args = @_;
-
- unless ( UNIVERSAL::isa( $args[0], 'HASH' ) ) {
- @args = {@args};
- }
- $self->{'order_by'} = \@args;
- $self->redo_search();
+ $self->{'order_by'} = [];
+ $self->add_order_by(@_);
}
return ( $self->{'order_by'} || [] );
}
More information about the Jifty-commit
mailing list