BUGFIX Allow has_one relationships to be translated.

Fixes #63
This commit is contained in:
Simon Elvery 2012-11-13 16:08:04 +10:00
parent 1bb392c8dc
commit 2422195945

View File

@ -535,7 +535,8 @@ class Translatable extends DataExtension implements PermissionProvider {
$this->translatableFields = array_merge(
array_keys($this->owner->inheritedDatabaseFields()),
array_keys($this->owner->has_many()),
array_keys($this->owner->many_many())
array_keys($this->owner->many_many()),
array_keys($this->owner->has_one())
);
}
}