Skip to content

Commit

Permalink
Merge pull request #259 from webbuilders-group/ambiguous-column-fix
Browse files Browse the repository at this point in the history
BUGFIX: Fixed potentential ambiguous column crash caused when query is joined to another table
  • Loading branch information
Damian Mooyman authored Jan 31, 2017
2 parents 06da948 + e302c4e commit 00682aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/model/Translatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ class_exists('SiteTree')
$fresh = Versioned::get_one_by_stage(
$baseDataClass,
Versioned::current_stage(),
'"ID" = ' . $this->owner->ID,
'"'.$baseDataClass.'"."ID" = ' . $this->owner->ID,
null
);
if ($fresh) {
Expand Down

0 comments on commit 00682aa

Please sign in to comment.