mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
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
Block a user