Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Oliver Eglseder
lfeditor
Commits
02c93bf0
Commit
02c93bf0
authored
Nov 13, 2015
by
Fabian Galinski
😾
Browse files
[BUGFIX] In the overwrite mode it isn't possible to set an empty value
parent
94188231
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Classes/Service/FileService.php
Classes/Service/FileService.php
+7
-1
No files found.
Classes/Service/FileService.php
View file @
02c93bf0
...
...
@@ -201,9 +201,15 @@ abstract class FileService extends AbstractService {
if
(
!
empty
(
$value
)
||
((
$langKey
===
'default'
&&
!
$forceDel
)))
{
$this
->
localLang
[
$langKey
][
$constant
]
=
$value
;
}
elseif
(
isset
(
$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
]);
}
}
}
/**
* returns origin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment