]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: manual backup: unescape notes template on load
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 27 Jun 2022 12:42:42 +0000 (14:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 28 Jun 2022 14:10:13 +0000 (16:10 +0200)
It's escaped in the API result and will be re-escaped upon submit,
leading to confusion as reported in the community forum:
https://forum.proxmox.com/threads/110747/post-480507

Fixes: c4dca88b ("ui: manual backup: also set notes-template default")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
www/manager6/window/Backup.js

index 510430c0c3d7c2dd94b93073349f554b235be6ad..4b21c746ce987a06bc2a64834b3baa30660c211f 100644 (file)
@@ -114,8 +114,9 @@ Ext.define('PVE.window.Backup', {
                                modeSelector.setValue(data.mode);
                            }
                            if (!initialDefaults && (data['notes-template'] ?? false)) {
-                               me.down('field[name=notes-template]')
-                                   .setValue(data['notes-template']);
+                               me.down('field[name=notes-template]').setValue(
+                                   PVE.Utils.unEscapeNotesTemplate(data['notes-template']),
+                               );
                            }
 
                            initialDefaults = true;