From: Arthur Axel "fREW" Schmidt Date: Sun, 7 Feb 2010 20:13:04 +0000 (+0000) Subject: fix longstanding unmentioned bug ("me") X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0616fdb70a922ab253550b6b6fb17220061a6f69;p=dbsrgits%2FDBIx-Class-Historic.git fix longstanding unmentioned bug ("me") --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 206569a..df82fcf 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -2629,9 +2629,9 @@ sub as_subselect_rs { my $self = shift; return $self->result_source->resultset->search( undef, { - alias => 'me', + alias => $self->current_source_alias, from => [{ - me => $self->as_query, + $self->current_source_alias => $self->as_query, -alias => $self->current_source_alias, -source_handle => $self->result_source->handle, }]