[pbs-devel] [PATCH proxmox-backup] ui: window/SyncJobEdit: don't send 'id' on edit

Dominik Csapak d.csapak at proxmox.com
Tue May 17 09:05:22 CEST 2022


we cannot change the id, and even if we send the same, the backend
does not allow 'duplicate' parameters (the id is in the url already)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/window/SyncJobEdit.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/window/SyncJobEdit.js b/www/window/SyncJobEdit.js
index 2c09b354..8e33265b 100644
--- a/www/window/SyncJobEdit.js
+++ b/www/window/SyncJobEdit.js
@@ -228,6 +228,10 @@ Ext.define('PBS.window.SyncJobEdit', {
 			name: 'id',
 			allowBlank: true,
 			regex: PBS.Utils.SAFE_ID_RE,
+			cbind: {
+			    disabled: '{!isCreate}',
+			    hidden: '{!isCreate}',
+			},
 		    },
 		],
 	    },
-- 
2.30.2






More information about the pbs-devel mailing list