From ef184a3e09e43af1667c74b31651052e8f2061ed Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Thu, 22 Feb 2024 12:38:36 -0500 Subject: [PATCH] remove translatable config support --- classes/EventRegistry.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/classes/EventRegistry.php b/classes/EventRegistry.php index 4c84593..ae9cdee 100644 --- a/classes/EventRegistry.php +++ b/classes/EventRegistry.php @@ -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];