]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: backup window: also set initialDefaults variable in failure case
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 6 May 2021 12:16:28 +0000 (14:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Jun 2021 14:29:19 +0000 (16:29 +0200)
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@proxmox.com>
www/manager6/window/Backup.js

index 72e8cb489ac2851c3c1f9db8cccd791931572b27..76a4987e57f83f65521da55adf158bbdbcb7a31e 100644 (file)
@@ -80,6 +80,7 @@ Ext.define('PVE.window.Backup', {
                            initialDefaults = true;
                        },
                        failure: function(response, opts) {
+                           initialDefaults = true;
                            Ext.Msg.alert(gettext('Error'), response.htmlStatus);
                        },
                    });