mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Merge pull request #69 from lrc/hasones-translatable
BUGFIX Allow has_one relationships to be translated.
This commit is contained in:
commit
9032711ea0
@ -535,7 +535,8 @@ class Translatable extends DataExtension implements PermissionProvider {
|
|||||||
$this->translatableFields = array_merge(
|
$this->translatableFields = array_merge(
|
||||||
array_keys($this->owner->inheritedDatabaseFields()),
|
array_keys($this->owner->inheritedDatabaseFields()),
|
||||||
array_keys($this->owner->has_many()),
|
array_keys($this->owner->has_many()),
|
||||||
array_keys($this->owner->many_many())
|
array_keys($this->owner->many_many()),
|
||||||
|
array_keys($this->owner->has_one())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user