Merge pull request #259 from webbuilders-group/ambiguous-column-fix

BUGFIX: Fixed potentential ambiguous column crash caused when query is joined to another table
This commit is contained in:
Damian Mooyman 2017-02-01 09:49:05 +13:00 committed by GitHub
commit 00682aa7bc
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ class Translatable extends DataExtension implements PermissionProvider {
$fresh = Versioned::get_one_by_stage(
$baseDataClass,
Versioned::current_stage(),
'"ID" = ' . $this->owner->ID,
'"'.$baseDataClass.'"."ID" = ' . $this->owner->ID,
null
);
if ($fresh) {