Skip to content

Commit

Permalink
remove translatable config support
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Feb 22, 2024
1 parent f0da1c5 commit ef184a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/EventRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,10 @@ protected function processFormMLFields($fields, $model, $parent = null)
// apply to fields with any context
list($fieldName, $context) = explode('@', $name);
}
if (! (array_get($config, 'translatable') || array_key_exists($fieldName, $translatable)) ) {
// field is not in model's translatable array and its translatable config is false
if (!array_key_exists($fieldName, $translatable)) {
continue;
}

// field is in model's translatable array or its translatable config is true

$type = array_get($config, 'type', 'text');
if (array_key_exists($type, $typesMap)) {
$fields[$name]['type'] = $typesMap[$type];
Expand Down

0 comments on commit ef184a3

Please sign in to comment.