From 6bba120d149d64fdd5b11bb99702aeec22e22b62 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 28 May 2020 17:15:15 +0200 Subject: [PATCH] ui: fix RemoteEdit password change we have to remove the password from the submitvalues if it did not change Signed-off-by: Dominik Csapak --- www/window/RemoteEdit.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/www/window/RemoteEdit.js b/www/window/RemoteEdit.js index 2c593dd4..79f61af7 100644 --- a/www/window/RemoteEdit.js +++ b/www/window/RemoteEdit.js @@ -75,4 +75,15 @@ Ext.define('PBS.window.RemoteEdit', { }, ], }, + + getValues: function() { + let me = this; + let values = me.callParent(arguments); + + if (values.password === '') { + delete values.password; + } + + return values; + }, });