1
0
mirror of https://github.com/silverstripe/silverstripe-translatable synced 2024-10-22 11:05:59 +02:00

FIX Retrieve list of translatable fields not database fields

This commit is contained in:
Simon Elvery 2013-03-06 11:46:20 +10:00
parent 21707de1ee
commit 68188a3ae8

View File

@ -533,7 +533,7 @@ class Translatable extends DataExtension implements PermissionProvider {
// 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())