projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fixed alias prepending for OR'ed join conditions in relationships
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Relationship
/
Base.pm
diff --git
a/lib/DBIx/Class/Relationship/Base.pm
b/lib/DBIx/Class/Relationship/Base.pm
index
9e4a35a
..
23df27e
100644
(file)
--- 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;