BUGFIX: Fixed ambiguous column crash caused when publishing a versioned object if the query is joined against another table

This commit is contained in:
UndefinedOffset 2017-01-31 15:49:54 -04:00
parent 06da948586
commit e302c4ec46

View File

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