Skip to content

Commit

Permalink
Make sure the resolve_cond shim attempts to lint the right thing
Browse files Browse the repository at this point in the history
This only matters in compat mode, so sod testing
  • Loading branch information
ribasushi committed Sep 5, 2014
1 parent 86370cc commit e65228c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DBIx/Class/ResultSource.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ sub _resolve_condition {

# _resolve_relationship_condition always returns qualified cols even in the
# case of join_free_condition, but nothing downstream expects this
if (ref $res[0] eq 'HASH' and ($is_objlike[0] or $is_objlike[1]) ) {
if ($rc->{join_free_condition} and ref $res[0] eq 'HASH') {
$res[0] = { map
{ ($_ =~ /\.(.+)/) => $res[0]{$_} }
keys %{$res[0]}
Expand Down

0 comments on commit e65228c

Please sign in to comment.