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(
|
$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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user