Permalink
Browse files

FIX Retrieve list of translatable fields not database fields

  • Loading branch information...
drzax committed Mar 6, 2013
1 parent 21707de commit 68188a3ae83a42af78e591986238499c0a7e99cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/model/Translatable.php
@@ -533,7 +533,7 @@ function setOwner($owner, $ownerBaseClass = null) {
// setting translatable fields by inspecting owner - this should really be done in the constructor
if($this->owner && $this->translatableFields === null) {
$this->translatableFields = array_merge(
- array_keys($this->owner->inheritedDatabaseFields()),
+ array_keys($this->owner->db()),
array_keys($this->owner->has_many()),
array_keys($this->owner->many_many()),
array_keys($this->owner->has_one())

0 comments on commit 68188a3

Please sign in to comment.