]> git.proxmox.com Git - proxmox-backup.git/commit
ui: tape: fix restoring a single datastore
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 25 Apr 2023 13:59:56 +0000 (15:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 09:28:23 +0000 (11:28 +0200)
commitdf881ed0fc89a0c008bfb6281896fc8c20da7005
tree9d58bd3b897eeac912886e62d85b841df186703c
parent84a91c5b933ff28df587c2b699d6af17a3d52a63
ui: tape: fix restoring a single datastore

if the user selected a single datastore to restore from tape on a
media-set that includes more than one, the ui suggests (and is
intended to) that only that datastore will be restored on the selected
target.

The logic to construct the store mapping parameter did not consider that
case, and simply gave the target as default store, which meant all
datastores were restored onto the target.

To fix that, we have to get the source datastore from the field, and
construct the correct parameter ("source=target").

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/tape/window/TapeRestore.js