From: Fabian Ebner Date: Mon, 27 Jun 2022 12:42:42 +0000 (+0200) Subject: ui: manual backup: unescape notes template on load X-Git-Url: https://git.proxmox.com/?p=pve-manager.git;a=commitdiff_plain;h=6a3052b2994c94baf0a61b3d177e200c421c8fd3 ui: manual backup: unescape notes template on load 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 --- diff --git a/www/manager6/window/Backup.js b/www/manager6/window/Backup.js index 510430c0..4b21c746 100644 --- a/www/manager6/window/Backup.js +++ b/www/manager6/window/Backup.js @@ -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;