From e302c4ec46f107d309eab443087786709d300bd3 Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Tue, 31 Jan 2017 15:49:54 -0400 Subject: [PATCH] BUGFIX: Fixed ambiguous column crash caused when publishing a versioned object if the query is joined against another table --- code/model/Translatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 53c5cc0..8f04b2b 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -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) {