]> git.proxmox.com Git - pve-storage.git/commit
api: content/backup: handle deletion of notes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Dec 2020 15:10:07 +0000 (16:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Dec 2020 15:10:09 +0000 (16:10 +0100)
commitf244e2aa7f1fd373173b87f58a627c07cf01af19
tree56659b95fadfc4c74c289179f105ee280374da2a
parent20471dfd95bf40a0e8480320700a3257ad488611
api: content/backup: handle deletion of notes

Previous to this we did not called the plugins update_volume_notes at
all in the case where a user delted the textarea, which results to
passing a falsy value ('').

Also adapt the currently sole implementation to delete the notes field
in the undef or '' value case. This can be done safely, as we default
to returning an empty string if no notes file exists.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Storage/Content.pm
PVE/Storage/DirPlugin.pm