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:
parent
21707de1ee
commit
68188a3ae8
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user