From: Aran Deltac Date: Thu, 23 Mar 2006 17:40:14 +0000 (+0000) Subject: Use the more verbose search syntax in previous_sibling. X-Git-Tag: v0.07002~75^2~277 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3ffca97bc6cb74f9a9aadb36a2a9d51d7d61f824;p=dbsrgits%2FDBIx-Class.git Use the more verbose search syntax in previous_sibling. --- diff --git a/lib/DBIx/Class/Positioned.pm b/lib/DBIx/Class/Positioned.pm index 7619d5a..b9370b2 100644 --- a/lib/DBIx/Class/Positioned.pm +++ b/lib/DBIx/Class/Positioned.pm @@ -157,7 +157,7 @@ sub previous_sibling { my $position_column = $self->position_column; my $position = $self->get_column( $position_column ); return 0 if ($position==1); - return ($self->search( + return ($self->result_source->resultset->search( { $position_column => $position - 1, $self->_collection_clause(),