From 2422195945cbdd6e952de093474dd0c02323e684 Mon Sep 17 00:00:00 2001 From: Simon Elvery Date: Tue, 13 Nov 2012 16:08:04 +1000 Subject: [PATCH] BUGFIX Allow has_one relationships to be translated. Fixes #63 --- code/model/Translatable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index b6bc768..6d02c78 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -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()) ); } }