[pve-devel] [PATCH v5 manager 2/6] ui: backup window: also set initialDefaults variable in failure case

Fabian Ebner f.ebner at proxmox.com
Thu May 6 14:16:28 CEST 2021


so that mailto and mode are not overwritten if the first /vzdump/defaults call
failed, but a later one succeeds.

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 www/manager6/window/Backup.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/window/Backup.js b/www/manager6/window/Backup.js
index 72e8cb48..76a4987e 100644
--- a/www/manager6/window/Backup.js
+++ b/www/manager6/window/Backup.js
@@ -80,6 +80,7 @@ Ext.define('PVE.window.Backup', {
 			    initialDefaults = true;
 			},
 			failure: function(response, opts) {
+			    initialDefaults = true;
 			    Ext.Msg.alert(gettext('Error'), response.htmlStatus);
 			},
 		    });
-- 
2.20.1





More information about the pve-devel mailing list