Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
37b29231
Commit
37b29231
authored
Aug 06, 2015
by
Marius Cramer
Browse files
- don't set password via remoting if field is empty
parent
92edaf22
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
37b29231
...
...
@@ -336,6 +336,14 @@ class remoting {
//* get old record and merge with params, so only new values have to be set in $params
$old_rec
=
$app
->
remoting_lib
->
getDataRecord
(
$primary_id
);
foreach
(
$app
->
remoting_lib
->
formDef
[
'fields'
]
as
$fieldName
=>
$fieldConf
)
{
if
(
$fieldConf
[
'formtype'
]
===
'PASSWORD'
&&
empty
(
$params
[
$fieldName
]))
{
unset
(
$old_rec
[
$fieldName
]);
}
}
$params
=
$app
->
functions
->
array_merge
(
$old_rec
,
$params
);
//* Get the SQL query
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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