[pbs-devel] [PATCH proxmox-backup 2/2] ui: fix changing remote to local sync job

Hannes Laimer h.laimer at proxmox.com
Tue Nov 28 15:16:54 CET 2023


Reported-by: Dominik Csapak <d.csapak at proxmox.com>
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
 www/window/SyncJobEdit.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/www/window/SyncJobEdit.js b/www/window/SyncJobEdit.js
index d20def74..58c8fb5c 100644
--- a/www/window/SyncJobEdit.js
+++ b/www/window/SyncJobEdit.js
@@ -73,6 +73,7 @@ Ext.define('PBS.window.SyncJobEdit', {
 		    }
 		    if (!me.isCreate) {
 			PBS.Utils.delete_if_default(values, 'rate-in');
+			PBS.Utils.delete_if_default(values, 'remote');
 			if (typeof values.delete === 'string') {
 			    values.delete = values.delete.split(',');
 			}
@@ -200,9 +201,6 @@ Ext.define('PBS.window.SyncJobEdit', {
 			xtype: 'pbsRemoteSelector',
 			allowBlank: false,
 			name: 'remote',
-			cbind: {
-			    deleteEmpty: '{!isCreate}',
-			},
 			skipEmptyText: true,
 			listeners: {
 			    change: function(f, value) {
-- 
2.39.2






More information about the pbs-devel mailing list