projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8f53570
)
fixed alias prepending for OR'ed join conditions in relationships
Eden Cardim [Wed, 25 Feb 2009 14:14:38 +0000 (14:14 +0000)]
lib/DBIx/Class/Relationship/Base.pm
patch
|
blob
|
blame
|
history
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;