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:
commit
00682aa7bc
|
@ -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