|
|
|
@ -24,6 +24,10 @@ class LanguageDynamicModel extends DynamicModel
|
|
|
|
|
if ($entity) { |
|
|
|
|
foreach ($used_attributes as $used_attribute) { |
|
|
|
|
foreach ($entity->translations as $translate) { |
|
|
|
|
if (!in_array($translate->language, $entity->translatedLanguages)) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$defaultLanguage = basename(\Yii::$app->getBasePath()) === 'backend' |
|
|
|
|
? |
|
|
|
|
Yii::$app->params['backendDefaultLanguage'] |
|
|
|
|