mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
Merge branch 'hotfix/4.2.6'
This commit is contained in:
@@ -183,6 +183,11 @@ class Language
|
||||
$options = $this->get($scope. '.options.' . $field);
|
||||
if (is_array($options) && array_key_exists($value, $options)) {
|
||||
return $options[$value];
|
||||
} else if ($scope !== 'Global') {
|
||||
$options = $this->get('Global.options.' . $field);
|
||||
if (is_array($options) && array_key_exists($value, $options)) {
|
||||
return $options[$value];
|
||||
}
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user