From: Eden Cardim Date: Wed, 25 Feb 2009 14:14:38 +0000 (+0000) Subject: fixed alias prepending for OR'ed join conditions in relationships X-Git-Tag: v0.08100~78 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=47752afea0272e7382c9649086ae63652b94a2fa fixed alias prepending for OR'ed join conditions in relationships --- diff --git a/lib/DBIx/Class/Relationship/Base.pm b/lib/DBIx/Class/Relationship/Base.pm index 9e4a35a..23df27e 100644 --- a/lib/DBIx/Class/Relationship/Base.pm +++ b/lib/DBIx/Class/Relationship/Base.pm @@ -209,7 +209,7 @@ sub related_resultset { if (ref $_ eq 'HASH') { my $hash; foreach my $key (keys %$_) { - my $newkey = $key =~ /\./ ? "me.$key" : $key; + my $newkey = $key !~ /\./ ? "me.$key" : $key; $hash->{$newkey} = $_->{$key}; } $hash;