[pbs-devel] [PATCH proxmox-backup 1/2] ui: tape/TapeRestore: fix restoring without mapping

Dominik Csapak d.csapak at proxmox.com
Mon Mar 29 13:25:36 CEST 2021


we have to delete the 'mapping' variable in any case since it's not
a valid api parameter

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/tape/window/TapeRestore.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/tape/window/TapeRestore.js b/www/tape/window/TapeRestore.js
index a9deb745..d33080e4 100644
--- a/www/tape/window/TapeRestore.js
+++ b/www/tape/window/TapeRestore.js
@@ -30,8 +30,8 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
 
 		if (values.mapping) {
 		    datastores.push(values.mapping);
-		    delete values.mapping;
 		}
+		delete values.mapping;
 
 		values.store = datastores.join(',');
 
-- 
2.20.1






More information about the pbs-devel mailing list