Skip to content

Commit

Permalink
BUGFIX: Fixed ambiguous column crash caused when publishing a version…
Browse files Browse the repository at this point in the history
…ed object if the query is joined against another table
  • Loading branch information
UndefinedOffset committed Jan 31, 2017
1 parent 06da948 commit e302c4e
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 e302c4e

Please sign in to comment.