mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
BUGFIX: Fixed ambiguous column crash caused when publishing a versioned object if the query is joined against another table
This commit is contained in:
parent
06da948586
commit
e302c4ec46
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user