Commit 02c93bf0 authored by Fabian Galinski's avatar Fabian Galinski 😾
Browse files

[BUGFIX] In the overwrite mode it isn't possible to set an empty value

parent 94188231
......@@ -201,7 +201,13 @@ abstract class FileService extends AbstractService {
if (!empty($value) || (($langKey === 'default' && !$forceDel))) {
$this->localLang[$langKey][$constant] = $value;
} elseif (isset($this->localLang[$langKey][$constant])) {
unset($this->localLang[$langKey][$constant]);
if ($this->session->getDataByKey('editingMode') === 'override' &&
isset($this->localLang[$langKey][$constant])
) {
$this->localLang[$langKey][$constant] = "";
} else {
unset($this->localLang[$langKey][$constant]);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment